3 ms·
There are basically three choices: 1) space significant (Python, Esterel) 2) braces or other one character delimiters 3) begin/end or other word delimiters I
by billmcneale 16y ago
There are basically three choices:
1) space significant (Python, Esterel)
2) braces or other one character delimiters
3) begin/end or other word delimiters
I find 3) very noisy and while I like 1) (even though I dislike Python), I find that 2) is a pretty good compromise, one where I don't find myself having to visually parse classes ending in "end end end end end".
- jamesbritt 16y agoWithin (1) there are options, as presented by Haskell (the offside rule) and Haml (you must indent exactly to _here_, no more, no less). The latter is nuts ("significant dementation", one might say. :) ). Plus some languages, such as Haskell, allow for both braces and significant indentation, with the language culture encouraging responsible usage.