Better HN
topnewbestaskshowjobs
Log inSign up

leokote

88 karma · joined Jan 11, 2009 (17y ago) · 3 submissions

Submissions

1.

AT&T Invents Programming Language for Mass Surveillance (2007)(wired.com ↗)

95 points · by leokote · 13y ago · 13 comments

comment 16y ago · link · parent

"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!".

comment 17y ago · link · parent

Here's one translation, circa 1901: http://bit.ly/z30d