in reply to Re: Defensive Programming
in thread Defensive Programming

But it does nothing, harms nooone so why not

The extra return is misleading.

On the other hand, this example does demonstrate another good defensive programming practice: always always ALWAYS put a default else on your conditionals, even (especially) if that condition "can't happen".

--
:wq