News for hackers. Stuff that matters.
Re:Why I chose Common Lisp over Python, Ruby, and Clojure by riobard on Wednesday December 02, 2009 @12:49PM (#972482)
Yeah I know. Maybe "force" is not the right word ... probably "discourage"?

Actually only one line of code is enough for each of map/filter:

    def map(fn, seq): return [fn(each) for each in seq]
    def filter(cond: seq): return [each for each in seq if cond(each)] 
But seriously, what do you really gain by removing these two? Isn't that too ideological? I don't really see how un-Pythonic it would be to use map/filter instead of list comprehensions. The problem is BDFL's attitude seems to drive many FP-ers away, like the guy in the original post.
Re:Why I chose Common Lisp over Python, Ruby, and Clojure by kingkilr on Wednesday December 02, 2009 @01:15PM (#972539)
They ultimately weren't removed. reduce was removed from the builtins, but it's still just one import away. From itertools import reduce.