PEP308: Yet another syntax proposal

Paul Rudin Paul_Rudin at scientia.com
Mon Feb 10 12:03:14 EST 2003


>>>>> "Aahz" == Aahz  <aahz at pythoncraft.com> writes:

 Aahz> In article <YUP1a.3080$SB2.242 at nwrddc03.gnilink.net>,
 Aahz> Raymond Hettinger <python at rcn.com> wrote:
 >>  I suggest:
 >> 
 >> cond ??  val1 || val2

 Aahz> +0.5

 Aahz> I still have yet to see a clear explanation of why
 Aahz> short-circuit is necessary...

Because computing the unwanted branch might be expensive or might
modify state, or both.

-- 
Just imagine you're entering a state-of-the-art CAR WASH!!




More information about the Python-list mailing list