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: joshua at eeinternet.com (Joshua J. Kugler)
  • Subject: (no) fast boolean evaluation ?
  • Date: Thu, 02 Aug 2007 16:00:17 -0800

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!  Thankfully, I
program mostly in Python these days.  Haven't touched VB in years.  Maybe
you should have said:

"This is standard behavior in every real programming language."

There, that should start a flame war. :)

j

-- 
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ?ID 0xDB26D7CE