4 ms·
As a recent Haskell learner, I found the indentation part of Haskell hard to learn and a little undiscoverable/hard to google. The number of times I've used cu
by yomly 6y ago
As a recent Haskell learner, I found the indentation part of Haskell hard to learn and a little undiscoverable/hard to google.
The number of times I've used curly braces, single lines or expression substitution to bail me out is many...
- neckardt 6y agoYou might like hinc, it's haskell but with C style syntax: https://github.com/serras/hinc/blob/master/why.md https://github.com/serras/hinc/blob/master/why.md
- scns 6y agoI like it. "This is not by coincidence: people learning Haskell usually have problems with point-free style not because of the composition operator per se, but because code is suddenly "reversed". Other communities such as F# have adopted the "pipe forward" operator instead of composition as the default style." That's why i prefer the reverse application operator & to .
- yomly 6y agoThanks for the suggestion but Haskell would not be Haskell without its ML-yness. As confusing as operator precedence can get, I do see the beauty in "programmable whitespace" but to get anywhere close in other language syntaxes you need to do even more perverse things like here [1] If I did have to choose a different syntax for haskell it would be S-expressions rather than Algol so perhaps Hackett from Lexi Lambda [1] https://stackoverflow.com/a/48553568 https://stackoverflow.com/a/48553568