News for hackers. Stuff that matters.

leokote

Re:Say What You Mean (in JavaScript) on Tuesday May 18, 2010 @04:48PM (#1359012)
"the expression evaluates to true if both return True, but then why is the result thrown out"

Actually, the result is not thrown out: the && operator produces the value of its first operand if the first operand is falsy, otherwise it produces the value of the second operand.

For what it's worth, there's also a procedural reading of "foo() && bar()" along the lines of "fill out this form AND win a prize!".

Re:EC2/AWS Console Easter Egg on Saturday January 10, 2009 @10:10PM (#428725)
Here's one translation, circa 1901: http://bit.ly/z30d