Re:8 months of OCaml after 8 years of Haskell in production ...
by mrkeen on Tuesday December 03, 2024 @03:01AM
(#42303931)
> I _never_ figured out the indentation rules
Weird. Haskell's my preferred language and I thought there was only one indentation rule - if something's further to the right it's part of the same expression, and if something's down it's a new expression.
f
x
y
g z
... With a slight addendum that you don't need to write 'let' on consecutive lines, e.g.
Weird. Haskell's my preferred language and I thought there was only one indentation rule - if something's further to the right it's part of the same expression, and if something's down it's a new expression.
... With a slight addendum that you don't need to write 'let' on consecutive lines, e.g.