Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no) fast boolean evaluation ?


  • From: bruno.42.desthuilliers at wtf.websiteburo.oops.com (Bruno Desthuilliers)
  • Subject: (no) fast boolean evaluation ?
  • Date: Fri, 03 Aug 2007 10:20:59 +0200

Joshua J. Kugler a ?crit :
> On Thursday 02 August 2007 15:19, Evan Klitzke wrote:
>>> I discovered that boolean evaluation in Python is done "fast"
>>> (as soon as the condition is ok, the rest of the expression is ignored).
>> This is standard behavior in every language I've ever encountered.
> 
> Then you've never programmed in VB (at least 6, don't know if .net still
> does this).  Nested IF statements. AAAAAAAAAAAAAAAAAAAACK! 

I do remember an even brain-deadiest language that not only didn't 
short-circuit boolean operators but also didn't have an "elif" statement...