in reply to looking for a good idiom: return this if this is true
would be simple and effective were it not for the fact that a return with no argurments is equivalent to return undef (or return () in list context). By making the undef or () mandatory in order to clear the "last expression evaluated" this whole discussion could have been avoided.thatroutine() and return;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: looking for a good idiom: return this if this is true
by adamk (Chaplain) on Mar 07, 2005 at 13:55 UTC | |
by merlyn (Sage) on Mar 07, 2005 at 15:20 UTC | |
|
Re^2: looking for a good idiom: return this if this is true
by DentArthurDent (Monk) on Mar 07, 2005 at 17:58 UTC | |
|
Re^2: looking for a good idiom: return this if this is true
by anjoschu (Sexton) on Mar 07, 2005 at 16:27 UTC |