3 ms·
Doing this stops most compilers putting the index variables in registers, with knock on effects on array indexing efficiency. Not necessarily a bad practice, b
by barrkel 13y ago
Doing this stops most compilers putting the index variables in registers, with knock on effects on array indexing efficiency.
Not necessarily a bad practice, but something to be aware of.
- justin66 13y agoIt really is a bad idea, though, for the other obvious reason. It goes from being something any programmer can figure out immediately to something that requires additional thought to understand. The only upside is that it satisfies someone's indentaphobia. No, thank you.
- a-nikolaev 13y agoNot really a bad idea, imo. The upside is that you cannot make a stupid typo in these nested loops, which is really easy to do, when you have to write the same thing several times in several places of your program. Also, it is easier to refactor, when the need will be.