Re:Go Replaces Interface{} with 'Any'
by DarylZero on Wednesday December 15, 2021 @01:36AM
(#29562806)
It's probably actually better than pattern matching when there are only two, as in those cases. But even at three, it becomes a mess. And more than three? Yuck.
[ Parent
| on HN ]
If your language does currying similar to Haskell, and there's a good order to your constructors / arguments, even with three or more there might be some benefits with partial application.