in reply to if else and not reachable coding style
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if else and not reachable coding style
by shotgunefx (Parson) on Mar 08, 2006 at 13:40 UTC |