3 ms·
The idea of writing point-free code in Javascript seems absurd to me. On Haskell, the odds of a point-free rewriting increasing legibility are about as large o
by marcosdumay 4y ago
The idea of writing point-free code in Javascript seems absurd to me.
On Haskell, the odds of a point-free rewriting increasing legibility are about as large of it reducing. And Haskell has all the syntax features that favors it. Javascript has none of those features.
- pklausler 4y agoMy general rule with point-free code is that it can be more readable when it's meant to convey that what's going on is a composition of components with no additional functionality.
- jim-jim-jim 4y agoHaskell level FP in TS is absurd on the whole. I respect the idea of fp-ts, and it's hardly the library's fault, but it is remarkably ugly. Type safety is only half the appeal of FP; it's also usually concise and pleasant to read. You lose that trying to hammer the concepts into a javascript shaped hole.