3 ms·
My "ah ha" moment with Haskell was when I ragequit for the 23rd time and decided that Haskell is probably not for me.
by flink127 14y ago
My "ah ha" moment with Haskell was when I ragequit for the 23rd time and decided that Haskell is probably not for me.
- ufo 14y agoThat also what I did when I realized that the "return" function isn't actually for returning values. But then I came back for the 24th time and got hooked. Now Im doomed forever.
- jonsterling 14y ago:) What an unfortunate function name. But "pure" isn't much better...
- pja 14y agoI always thought it ought to be "inject" or something. Return is just outright confusing to novices & just encourages them to believe that do ... return notation has something to do with imperative programming. Which is does of course, but only by the most circuitous of routes. My embarrassing Haskell moment was how long it took me to realise that I could never get Arrow notation to work because the first argument to an arrow was the "arrow type" bit, so I was always trying to pass the wrong number of arguments to (*) and friends. Took me ages to get over that hump.