Precedence, Operators, and Fixity
Pointfree style is a great example of the flexibility that Haskell’s syntax can afford you in writing code that’s short and to the point. Since Haskell’s grammar requires very little in the way of additional punctuation to separate out different parts of an expression, pointfree style feels like a natural evolution of Haskell’s already generally minimalist style. The downside of both pointfree style specifically, and Haskell’s lightweight syntax in general, is that it relies on implicit rules about how things are parsed, rather than explicit punctuation where characters and symbols are used to tell both the compiler and the reader how to parse the code.
Thankfully, although these parsing rules are implicit and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access