Y
Hacker News
new
|
ask
|
show
|
jobs
by
MichaelGG
3830 days ago
Example:
let x = let x = 1 x + 1
If you use tabs the indentation is broken depending tab size. Some languages prefer needless symbols to do this; I prefer the cleanliness of just whitespace.
1 comments
rascul
3830 days ago
The indentation is fine, the alignment is broken. Tab to the indent level and align after that with spaces.
link
MichaelGG
3830 days ago
The actual indent level is wherever the second let begins. It's equivalent to:
let x = let x = 1 x + 1
Seems inconsistent to have to use a mix of tabs and spaces in different scenarios of visual preference.
link