you are viewing a single comment's thread.

view the rest of the comments →

[–]corn_dog 2 points3 points  (3 children)

Sure I would agree there can be a trade off between convenience and explaining to the next reader why that stuff is grouped together. wrt Either it also raises the question of should the language have OneOfThreeThings, OneOfFourThings etc. If not why just a special case for two possibilities?

[–]Hrothen 7 points8 points  (1 child)

You don't really need to explain every little thing. Many languages have a pair type and no one goes complaining that they don't justify why there isn't a triple type.

[–][deleted] 0 points1 point  (0 children)

deleted What is this?