Aw: Functional style programming in python: what will you talk about if you have an hour on this topic?

Rainer Grimm r.grimm at
Sat Jul 16 02:27:18 EDT 2011

> > (My post did not appear in the mailing list, so this is my second try. Apology if it ends up posted twice)
> > 
> > Hi, all,
> > 
> > If you have read my previous posts to the group, you probably have some idea why I asked this question.
> > 
> > I am giving a few presentations on python to my colleagues who are mainly java developers and starting to pick up python at work.
I think it's relatively difficult to get a feeling what a are the key
points behind functional programming. So I think you should start
explaining the concepts behind functional programming. A few ideas.
- higher order functions
- first class functions
- currying
- pure functions
- list processing
- lambda functions
- recursion instead of iteration
- pattern matching
And that should end with the three guys (map, filter and reduce ) as
building blocks of functional programming. And that is a good point to 
introduce list comprehension. Because it's only syntactic sugar for map 
filter. But what kind of sugar. It's very impressive. Thats my typical way
to introduce it in seminars.
Now it's a good time to explain, what's special in python with
functional programming. (A lot if you compare it with haskell)
I wrote an article about your topic. You have only to learn german.
About the concepts:
What's special about Python:

Greetings from Rottenburg,

More information about the Python-list mailing list