Pierre Barbier de Reuille wrote about Python and lambdas:


Well, I would not recommand using lambda functions ! The main reason is they are limited in that they only accept expressions (ie. not statements) and you can end up with very ugly things (mainly because of the lack of if-expressions).

Oh! You would *like to have imperative statements within LAMBDA*?

Friend, you are in state of mortal sin!

I suppose that if somebody decides to use lambdas, he wants to do some
functional programming, no?

True, there are no conditional expressions. But there are because of the
laziness of boolean combinators. This works:

(x > y) or 'allez en enfer'

Jerzy Karczmarczuk

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to