in reply to Re^6: Variable assignment error checking
in thread Variable assignment error checking
They're certainly logically equivalent if we disregard the short-circuiting nature of operators. (Though the mathematics branch of logic generally deals with no other return values than true and false...)$var = $var || func( $var ); $var = func( $var ) || $var;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Variable assignment error checking
by hdb (Monsignor) on Dec 15, 2013 at 10:41 UTC |