Going from C# to Typescript with type unions it always felt weird. Maybe that’s a good reason to have held off on this for this long? Know your audience and all that?
It does get used to but still reading the too many A|B|undefined gets tiring after a while. It also adds to laziness as you could take one thing and be fuzzy about returning a combo of three or more things. And as you go up the stack this gets more and more confusing.
C# forces you to deal with this in a constrained way which I like.
But perhaps there are folks who are excited by this that have a convincing argument? Please educate me.
It does get used to but still reading the too many A|B|undefined gets tiring after a while. It also adds to laziness as you could take one thing and be fuzzy about returning a combo of three or more things. And as you go up the stack this gets more and more confusing.
C# forces you to deal with this in a constrained way which I like.
But perhaps there are folks who are excited by this that have a convincing argument? Please educate me.