This might be a case for a postfix if. To quote TheDamian:
Reserve postfix if for flow-of-control statements.
PBP p94
sub sg { return 1 if COND; return 2; }
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
In reply to Re: if else and not reachable coding style
by rinceWind
in thread if else and not reachable coding style
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |