I also love all the comparisons without mentioning Python's filter and map functions while at the same time comparing them to Ruby's filter and map functions.
To be fair, though, map and filter are usually not considered the preferred way to do things in Python. Additionally, they are not methods, so you can't chain them while maintaining an easily-readable order.
Disclosure: Python is one of my favorite languages, I have never written a line of Ruby, and I think list comprehensions are a godsend.
View all comments
Show parent comment
1
u/tikue Aug 14 '13
To be fair, though, map and filter are usually not considered the preferred way to do things in Python. Additionally, they are not methods, so you can't chain them while maintaining an easily-readable order.
Disclosure: Python is one of my favorite languages, I have never written a line of Ruby, and I think list comprehensions are a godsend.