News for hackers. Stuff that matters.
Re:What Is Good About Haskell? by LandR on Thursday October 03, 2019 @07:09AM (#21145660)
I would say the second one is more intuitive to me, it reads like I have a Tree type and it can be either a Leaf or a Node.

The rust example to me isn't immediately obvious that it's an either / or situation other than that must be how an enum works (I know enums from other languages)

There are no comments on this comment yet.