4 ms·
Really exit can be pretty useful though. Doing if(condition) return at the start, before it gets going often reduces indentation and how many branches you need
by Tyr42 4y ago
Really exit can be pretty useful though.
Doing if(condition) return at the start, before it gets going often reduces indentation and how many branches you need to see at once.
But I can agree sneaky returns can bite you sometimes