News for hackers. Stuff that matters.
Re:The Go Programming Language, or: Why all C-like languages... by fauigerzigerk on Wednesday June 08, 2011 @11:14AM (#2633421)
Python does foo if bar else baz, which is a little more verbose but still okay. JS and Perl, however, rock with their boolean operators AND and OR not just evaluating to true and false, but to the actual value that was considered true.

Python does that as well:

  0 or False or 'Python rocks' or [] == 'Python rocks'

There are no comments on this comment yet.