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".
--In reply to Re(2): Defensive Programming
by FoxtrotUniform
in thread Defensive Programming
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |