in reply to Anybody use !!
Updated: Corrected the spelling of "formulation". Also, I would think that a very clear statement of what the $return value is, resolves the problems that ikegami points out. They can happen. I would not use side effects of an operator as a substitute for explicitly saying what you mean in a very clear way. The fact that we are even discussing what does "!!$return mean?", means that it shouldn't be used. It is confusing. And in my mind that is reason enough not to do it. Use some kind of "if", perhaps a ternary statement to resolve this down to an obvious boolean, $flag_all_ok, if necessary. Have the return statement return an obvious thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Anybody use !!
by BrowserUk (Patriarch) on Dec 30, 2010 at 02:26 UTC | |
by Marshall (Canon) on Dec 30, 2010 at 07:37 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2010 at 08:53 UTC | |
by Marshall (Canon) on Dec 30, 2010 at 09:53 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2010 at 10:18 UTC | |
| |
|
Re^2: Anybody use !!
by Anonymous Monk on Dec 30, 2010 at 08:13 UTC |