4 ms·
So you refused to answer my direct question: how fluent are you with Haskell? I must assume the answer is "not much", which is why you keep building strawmen an
by the_af 12y ago
So you refused to answer my direct question: how fluent are you with Haskell? I must assume the answer is "not much", which is why you keep building strawmen and disregarding everything people tell you about the language.
For an empirical advocate, you keep arguing from a quite theoretical point of view.
Good luck with that!
- infraruby 12y ago> So you refused to answer my direct question: how fluent are you with Haskell? http://www.paulgraham.com/disagree.html http://www.paulgraham.com/disagree.html DH0 DH1 <-- you are here DH2 DH3 DH4 DH5 DH6 > For an empirical advocate, you keep arguing from a quite theoretical point of view. What you assert without evidence can be dismissed without evidence.
- the_af 12y agoSooo... how fluent are you with Haskell?
- the_af 12y ago> So... if Angus writes fromMaybe "", which is accepted by the Haskell compiler but deletes all my files, is he a Haskell programmer? He is a Haskell programmer, the same as any Haskell programmer that runs launchAllNukes. What he is not is a surprised Haskell programmer, unlike someone, say, a programmer using bash or a programming language which allows nulls and/or accessing undefined variables with surprising results. Why is Angus not surprised? Well, because he chose to return "" when he had Nothing. Presumably he thought the empty string was an acceptable value, and he wasn't trying to indicate "no value", because that is what Haskell programmers use Maybe for (and please don't mention Scotsmen here, because it will only make you seem ignorant). If his choice turned out to cause a bug, he made a mistake. But note this is unlike the situation for Mr Bash, who didn't choose to access an undefined variable, and unlike Mr Java Dev, who didn't choose to ignore a possible null return value. This is because Haskell is safer than bash or Java: Angus, Mr Bash and Mr Java can all make mistakes when choosing default values, but unlike the other two, Angus cannot make the mistake of accessing an uninitialized variable or a null reference. He is lucky like that!