4 ms·
If you have a loop inside another loop and say and if statement, it can be hard to tell where the end is: I'm in the IF What am I in? vs:
by wvenable 4y ago
If you have a loop inside another loop and say and if statement, it can be hard to tell where the end is:
I'm in the IF
What am I in?
vs:
I'm in the if
}
}
}
What am I in?
I'm sure it's just personal preference and I don't like it. I don't think significant whitespace is sort of a universal good that maybe it seemed like when it was proposed. It now seems more problematic to me.
- dragonwriter 4y ago> If you have a loop inside another loop and say and if statement, it can be hard to tell where the end is: In either case, the aligned visible lines above (presuming reasonable block size) will be what clarifies that, assuming correct indentation (which is necessarily the case with syntactic indentation) and the brackets just add (in the example) three additional lines of separation making that harder.
- mixmastamyk 4y agoTurn on "indentation guides" in your editor. A dotted line will extend vertically across the block.