9 ms·
> Which is partly why OCaml gets some bias from me over Haskell. Sounds like you made a mistake, then, because indentation is optional in Haskell: https://en.m
by runeks 9y ago
> Which is partly why OCaml gets some bias from me over Haskell.
Sounds like you made a mistake, then, because indentation is optional in Haskell: https://en.m.wikibooks.org/wiki/Haskell/Indentation#Explicit_characters_in_place_of_indentation https://en.m.wikibooks.org/wiki/Haskell/Indentation#Explicit...
- hellofunk 9y agoI have never seen a Haskell dev do this.
- CatOnTheCouch 9y agoWhich shows what most people prefer. None the less your concern is more than valid and a real problem. My suggestion would be that the interpreters/compilers of white-space sensitive languages should implement the beautifying operation and call it before code is executed and editors should use this function. We can't expect to not adapt editors to different code styles.
- Tarean 9y agoSimon Peyton Jones, one of the driving forces behind GHC, uses braces.