(no subject)
Chermside, Michael
mchermside at ingdirect.com
Tue Feb 18 11:26:39 EST 2003
Stephen Horne writes:
> And what I wouldn't give to be able to write...
>
> def IF (p_Cond, lazy p_True, lazy p_False) :
> if p_Cond : return p_True
> return p_False
I have to say, I agree, this would be a REALLY nice
feature for the language to have. Hmm... I'm not sure
I'm quite up to channeling Guido, but I hear this vague
ectoplasmic echo saying:
"so... show me the patch!"
Not that (optional) lazy evaluation wouldn't be nice at
times, but it's rather difficult without impacting
performance of the entire language.
if-only-it-were-so-easy 'lly yours,
-- Michael Chermside
More information about the Python-list
mailing list