Settings

Theme

Functional Programming with Python – Part 1

blog.dhananjaynene.com

83 points by dnene 16 years ago · 4 comments

Reader

ezyang 16 years ago

I love functional programming, but I've also been repeatedly warned by peers of mine "not to write Haskell in Python." So stuff like currying in Python, for me at least, tends to just be an exercise in obfuscation (just write the damn lambda!), whereas in Haskell there's absolutely no syntactic overhead.

It's also why writing code in Twisted feels so twisted; the syntax is well adapted for imperative and object-oriented code. Not really functional code.

Still, itertools, generators and their ilk are very useful when used tastefully and I encourage all Python programmers to learn about them.

xhuang 16 years ago

quality post!

fungi 16 years ago

thx heaps :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection