News for hackers. Stuff that matters.
Re:Hidden features of Python by brlewis on Wednesday July 14, 2010 @11:11AM (#1514794)
I feel validated that the chaining comparison operators feature is #1 in terms of votes (303 vs #2 at 249 as I write this). Nobody else seems to think it worth mentioning, but chaining comparison operators is a feature I'm really fond of in Lisp/Scheme: http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node124.html
Re:Hidden features of Python by omaranto on Wednesday July 14, 2010 @08:09PM (#1516406)
I wouldn't say Lisp has chaining of comparisons, only chaining of identical comparisons: a < b < c --> (< a b c), but a < b <= c --> (and (< a b) (<= b c))
Re:Hidden features of Python by brlewis on Thursday July 15, 2010 @08:10AM (#1517546)
Still, chaining identical comparisons is a feature I think is cool.