4 ms·
When I was a Haskell noob there was this weird meme being propagated that if it compiles, it’s correct.
by LispSporks22 3y ago
When I was a Haskell noob there was this weird meme being propagated that if it compiles, it’s correct.
- tome 3y agoIt's possible you heard that (there are 227 hits for that phrase on Google) but more likely you heard "if it compiles, it works" (35,000 hits). "If it compiles, it’s correct" is obviously false, and no one should be saying it about Haskell code. "If it compiles, it works" is true in certain contexts and for suitably weak definition of "works" (such as, behaves in a sensible way and provides a sensible answer, just not necessarily a correct one) and is an experience attested to by many, many Haskell programmers.