Re:When Does Point-Free Notation Make Code More Readable?
by mrkgnao on Friday September 29, 2017 @10:33AM
(#15365595)
Using even better (PureScript) syntax, the pointfree version of the latter can be written in notation similar to a hom-functor.
f1 = pow 2
f2 = pow _ 2
This makes it look like a lambda but without having to bind an argument explicitly. Makes it much nicer to write complicated expressions (although I can't speak to the readability for people less fluent in the syntax).
Furthermore, implementing the reverse check is syntactically symmetric in the pointed version:
Whereas the pointfree version, assuming the function is not commutative, accumulates even more concepts: