in reply to Better expression for $x = !!$y||0
Better, IMO, but much depends on what the reader knows about x and y from the surrounding code:
$x = 0; if ($y) { $x = 1; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Better expression for $x = !!$y||0
by merlyn (Sage) on Apr 19, 2005 at 14:07 UTC | |
by ysth (Canon) on Apr 19, 2005 at 23:08 UTC | |
by TimToady (Parson) on Apr 20, 2005 at 00:30 UTC | |
by ysth (Canon) on Apr 20, 2005 at 07:07 UTC | |
by TimToady (Parson) on Apr 20, 2005 at 20:00 UTC | |
| |
by Anonymous Monk on Apr 20, 2005 at 08:43 UTC |