$10K coding deathmatch

Bryan Petty etierra at gmail.com
Mon Nov 6 15:12:48 MST 2006


On 11/6/06, Hill, Greg <grhill at corp.untd.com> wrote:
> print ($value) ? 'match' : 'not a match';
>
> Yay for tertiary operators.  Of course, Python may or may not have
> those, I wouldn't know.  I'm a Perl bigot.

Python does, but not quite using the same syntax:
http://diveintopython.org/power_of_introspection/and_or.html#d0e9975

I do love ternary operations in C++, maybe a little too much.

Regards,
Bryan Petty



More information about the PLUG mailing list