4 ms·
In fact a lot of (.) and ($) messing would simply go away if Haskell used the old normal syntax for functions. But then, this notation overloads the parenthesi
by marcosdumay 11y ago
In fact a lot of (.) and ($) messing would simply go away if Haskell used the old normal syntax for functions.
But then, this notation overloads the parenthesis, what is bad, and would make currying extremely annoying, basically killing the language.
Anyway, I disagree with you about operators. Some operations are just clearer when infixed, and there's no reason at all to expect a random operator to associative. Now, right associative operators are indeed something to use with care.
- cousin_it 11y agoThis might be veering off topic, but I never really bought the argument that currying is important to FP. It seems more like a toy that makes some code marginally shorter, but interferes with other useful things (like named or default arguments). Or is there something fundamental that I'm missing?
- deleted 11y ago[deleted]
- marcosdumay 11y agoWell, I don't think it's important for FP in general, but most of Haskell's syntax depends on currying.