3 ms·
If Haskell becomes mainstream, there will be some absolutely horrifying Haskell code. But Haskell allows people who know what they're doing to also check that
by iopq 10y ago
If Haskell becomes mainstream, there will be some absolutely horrifying Haskell code.
But Haskell allows people who know what they're doing to also check that their code doesn't violate certain constraints. That means that the amount of work the compiler does is greater, which makes more guarantees about correctness.
It's not about making the worst code less bad, it's about making the median project take less time and have less defects.
- tinco 10y agoThere already is some very horrifying Haskell code written by masters of the language. Well written Haskell in my opinion can be readily understood by anyone who has studied the language for a week or two (provided they are experienced programmers). The depth of potential for abstraction in Haskell is so tempting however that often clarity is lost in dense semantics.