3 ms·
A typical well written Haskell program has more type annotation than the same program written in Java. Not only that but because of type classes those annotati
by brl 18y ago
A typical well written Haskell program has more type annotation than the same program written in Java. Not only that but because of type classes those annotations are even more verbose than an equivalent declaration in Java.
It's true that you can omit most of the type signatures and let the compiler figure it out but nobody really writes Haskell code that way if they want it to be comprehensible by human readers.
- silentbicycle 18y agoI've wondered about this. It seems common for OCaml code to only have the type annotations where necessary, but it's usually included in Haskell by convention.