3 ms·
I understand this feeling, but it goes away after a bit of practice. In java/go/c#, there are lots of statement and small expressions. In haskell expressions t
by sbergot 12y ago
I understand this feeling, but it goes away after a bit of practice.
In java/go/c#, there are lots of statement and small expressions. In haskell expressions tends to be longer and are broken down in multiple local definitions (with let or where).
You learn to recognize important words (fmap, forM_, $, etc). You also learn to recognize how those words are associated, and how data is passed around.
Granted, there are people who abuse point-free notation to build complex and hard to read expressions. However I find that a codebase with rich informative types and a reasonable coding rule set is very pleasant to read.
- codygman 12y agoPoint free can be used to have something similar to Unix pipelines as well though, resulting in simple, fast, and readable code.