4 ms·
I much prefer this style too. Every time you have to go into a nest, you have to maintain state in your head of what the condition is. So by the time you're ne
by iamwil 16y ago
I much prefer this style too.
Every time you have to go into a nest, you have to maintain state in your head of what the condition is. So by the time you're nested 9 or 10 levels deep (I've seen this before), I can't remember what all the conditions are that got me there.
I remember reading the single-exit mantra was the result of hardware and speed optimization, rather than readability and maintainability optimization, but I could be remembering wrong.