in reply to Re: ?: = Obfuscation?
in thread ?: = Obfuscation?
And dead set against this:
my $x = $y > 5 ? ($y = 0) : ($y = 1);
As you should be.
my $x = ($y = $y > 5 ? 0 : 1);
and
$y = $y > 5 ? 0 : 1; my $x = $y;
are much more readable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: ?: = Obfuscation? (= =)
by tye (Sage) on Dec 01, 2006 at 22:18 UTC |