Linux security: mixing assignment with expression
Jay O'Connor
joconnor at cybermesa.com
Wed Nov 12 15:42:16 EST 2003
On Wed, 12 Nov 2003 20:27:14 -0000, Dave Benjamin
<ramen at lackingtalent.com> wrote:
>In this case, the ability to mix assignment with expression in C not only
>affected readability but--as a result--security. I think this clearly lends
>credibility to Guido's design decision to deliberately prevent this sort of
>"mistake".
I still prefer the solutions from other languages that use real
boolean types and then either don't allow boolean evaluation of
numbers (Smalltalk) or don't allow assignment of numbers to booleans
(Ada)
More information about the Python-list
mailing list