Purists say there should only be one entry and one exit and anything else is obfu. What do you say?
It's a common idiom in many languages - so common it's listed in Fowler's refactoring book (Replace Nested Conditional with Guard Clause.)
It's a nice thick book - so you can always "re-educate" any purists you may find with it (apply swiftly to back of head :-)
In reply to Re: A matter of style
by adrianh
in thread A matter of style
by Ryszard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |