|
|
|
|
|
by tomwilde
4215 days ago
|
|
Why do Haskell programmers see it as a good thing to package their abstractions in syntactic sugar? Stop doing that. It makes it incredibly difficult to participate -- you basically need to learn 3 syntaxes on top of Haskell's own to contribute to any non-trivial project. I'm referring to the article the post's author recommends:
http://www.haskellforall.com/2013/02/you-could-have-invented... |
|
Without knowing which one's you mean, can I offer a suggestion: Instead of looking at these syntaxes and more overhead, (feeling that you need to somehow mentally parse them into whatever they de-sugar to) try to treat them more as a chunking [1] opportunity.
So for example, when you see code in a monadic do block, don't try to mentally de-sugar it to the function calls it results in. Rather think of it slightly like imperative code where x <- someMonad ~ x = someMonad(). This of course isn't what's going on really, but in many cases it's close enough for you to use it and move on.
[1] http://en.wikipedia.org/wiki/Chunking_%28psychology%29