3 ms·
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 see
by dustingetz 12y 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!)
- sp332 12y agoBDFL Guido van Rossum is not in favor of adding functional programming stuff to python. So, by fiat, functional programming is not very pythonic. :)
- TorKlingberg 12y agoYou 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.
- GFK_of_xmaspast 12y ago"unpythonic" once again meaning "disliked by van Rossum."
- omaranto 12y agoI 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.
- pekk 12y agoHalf the good things in any halfway decent language are also seen in any other halfway decent language.