3 ms·
I've had 20 years of dealing with C style parentheses and I've learned to parse it visually at a glance. I can't do the same with languages which use significa
by iMark 13y ago
I've had 20 years of dealing with C style parentheses and I've learned to parse it visually at a glance. I can't do the same with languages which use significant white space instead.
I imagine I could train myself to do so, but there is a cost involved.
- nedbat 13y agoI suspect if you were presented with a piece of code where the indentation and the braces disagreed, you would believe the indentation. Yes, it's easy to parse at a glance if it is correct, and the indentation agrees with it. If it doesn't, good luck seeing the error. This is one of the good things about significant indentation: the human and the computer are reading the same signals.