5 ms·
I agree that Haskell guards are aesthetically uglier, but they're much easier to read with the conditional before the result.
by rjeli 9y ago
I agree that Haskell guards are aesthetically uglier, but they're much easier to read with the conditional before the result.
- theoh 9y agoSomeday the equivalence between the notations will make it possible to (gasp) automagically translate between the two. If we're still typing programs.
- rjeli 9y agoAnd then we'll have AST wars instead of language wars... unless we can compile to and from Turing machine instructions :-D
- Risord 9y agoHopefully we skip that AST phase and go directly more meaningful and still less visual related layer. Is it called ASG or something. Edit: We probably have wars anyway but I think after that our wars are about something that really matters.
- n4r9 9y agoI found the Miranda version much easier to read. But then I'm a mathematician who has never used Haskell, and it's fairly similar to how mathematicians write multi-line functions.