?

Log in

No account? Create an account
Note to self: precidence matters! - Chaz Meyers [entries|archive|friends|userinfo]
Chaz Meyers

[ website | chazmeyers.com ]
[ profile | view profile ]
[ archive | view archive ]

Links
[Links:| chazmeyers.com Twitter ]

Note to self: precidence matters! [Apr. 14th, 2006|05:24 pm]
Chaz Meyers
[Tags|, , , ]

Note to self:

variable = A and B ? some_method_returning_array() : []

`variable` is always set to `A` because `and` does not bind as tightly as `&&`! Oops!

I definitely did not spend an hour not realizing this. Not at all. :)
LinkReply