Equivalent to (a ? b : c) ?
Gaetan Corneau
Gaetan_Corneau at baan.com
Tue Dec 21 11:32:03 EST 1999
> (Perl anyone?)
Thanks, but no, thanks.
> But really, I think it's a bit much to ask for a
> readable version of ?: since the original construct is itself a bit of
> a disaster for readability IMO...
It's really not that bad if you don't imbricate them. And "?" is very useful
in ctor initialisation lists. But I don't miss the operator that much in
Python. I can live with a little function that emulates it, even if it can't
do short-circuit evaluation.
______________________________________________________
Gaetan Corneau
Software Developer
Software Engineering Process Group
BaaN Supply Chain Solutions
http://www.baan.com
E-mail: Gaetan_Corneau at baan.com
Tel: (418) 266-8252
______________________________________________________
"Profanity is the one language all programmers know best"
More information about the Python-list
mailing list