This message was deleted.
# getting-started
s
This message was deleted.
m
I see 2 more often but with the children being data classes. But in general option 2 gives you more flexibility on how the children need to implement it, but is more verbose with the override.
y
indeed 2 seems easier to write but the verbosity annoys me
naively this seems like a case where only one syntax should been allowed
m
There are differences, so both do slightly different things. If the field is nullable, and abstract property in the base makes it so you cannot smart cast after a null check. That's one reason to prefer option 1 over option 2.
👍 1
y
hey, I didn't consider that one.