(a==b) ? 'Yes' : 'No'
John Bokma
john at castleamber.com
Tue Mar 30 15:19:19 EDT 2010
Robert Fendt <no.spam at local.local> writes:
> In fact, the syntax just shouts 'do [...] unless' to me. And
> that's so strong a Perl-ism I cannot quite express how ugly I
> actually find it...
And
a == b and 'Yes' or 'No'
isn't a Perl-ism?
Sheesh, this group would be so much nicer without the constant dragging
in of Perl to make a point. On top of that, do { } unless blocks are
not idomatic in Perl. Perl Best Practices even clearly states to *never*
use unless.
--
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
More information about the Python-list
mailing list