News for hackers. Stuff that matters.
Re:Haskell's Children by eru on Thursday September 24, 2020 @12:20AM (#24575216)
You still have to get the algorithms right in eg Haskell.

It's just that in Haskell you have to write fewer tests to be sure you did it right, because for many kinds of mistakes you could have made, the compiler can yell at you.

The other advantage of nicer types is that they serve as part of the documentation. Exactly because the types can constraint the behaviour of implementations more than in Go. So the reader can make more valid assumptions from the type alone.

Hoogle uses those types to give you a truly extra-ordinary way to search the Haskell libraries via types. That approach would be almost useless in Go, and you have to fall back to searching via keywords etc only.

There are no comments on this comment yet.