New syntax for blocks

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Nov 12 20:44:22 EST 2009


On Thu, 12 Nov 2009 21:27:31 +0100, Bruno Desthuilliers wrote:

> Congratulations, you just reinvented one of the most infamous source of
> bugs in C, C++, Java, PHP, javascript and quite a few other languages.
> Believe it or not, but not allowing this in Python was a very deliberate
> design choice.

Oh, but those hundreds of thousands of man-hours lost to bugs caused by 
assignment-as-an-expression is nothing compared to the dozens of man-
minutes saved by having one fewer line of code!


*wink*



-- 
Steven



More information about the Python-list mailing list