News for hackers. Stuff that matters.
Re:What Is Good About Haskell? by enlyth on Thursday October 03, 2019 @06:01AM (#21145281)
Because everyone knows what an enum is, and that <A> will be a generic type, from first glance. There's nothing to guess, apart from Box being some kind of pointer abstraction.

Looking at the second definition it's not immediately apparent what 'a' is and "Node a (Tree a) (Tree a)" seems just like a bunch of words concatenated by spaces, it has no apparent structure or meaning, unless you're used to writing Haskell/ML/Lisp/etc.

Re:What Is Good About Haskell? by the_af on Thursday October 03, 2019 @09:11AM (#21146512)
> Because everyone knows what an enum is, and that <A> will be a generic type, from first glance

That's false. A programmer coming from Python or Go won't know this. Nobody who hasn't been exposed to the extremely arbitrary generics syntax in Java-like languages will know about <A>.

Re:What Is Good About Haskell? by pjmlp on Thursday October 03, 2019 @08:23AM (#21146146)
One needs to know Rust to actually understand that Box is the Rust's way to do heap allocation.