3 ms·
Point-free isn't going to be worth it in a language where composition and application of functions isn't syntactically and computationally as cheap as possible.
by danharaj 9y ago
Point-free isn't going to be worth it in a language where composition and application of functions isn't syntactically and computationally as cheap as possible. It also only works perfectly well for unary functions and situationally for binary functions. Anything more and the contortions start being more unreadable than variables.
In Haskell partial application is literally free and composition is an operator. That's why point-free works well there. No point in importing syntactic ideas that don't make sense in the new context.
Edit: I should also point out there's a subtle corner-case if you mix these transformations with uses of `seq`.