Hacker News new | ask | show | jobs
by dustingetz 4353 days ago
Functional is the new pythonic!

(edit: It actually is, half of the good things in Python, like list comprehensions and tuples and destructuring, were first seen in functional languages!)

2 comments

BDFL Guido van Rossum is not in favor of adding functional programming stuff to python. So, by fiat, functional programming is not very pythonic. :)
You are both partially right. List comprehensions are considered pythonic, and they are similar to map and filter from the FP world. However the map and filter functions themselves are somewhat unpythonic.
I guess list comprehensions in Python are, as you say, similar to map and filter from the FP world, but they are even more similar to... list comprehensions from the FP world.
"unpythonic" once again meaning "disliked by van Rossum."
Half the good things in any halfway decent language are also seen in any other halfway decent language.