News for hackers. Stuff that matters.
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.
Re:Go Replaces Interface{} with 'Any' by eru on Thursday December 16, 2021 @03:58AM (#29576382)
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.