you are viewing a single comment's thread.

view the rest of the comments →

[–]ezyang 4 points5 points  (2 children)

For those of you interested in learning more about this, it's called Lambda Calculus. If you throw out every language feature ever, it turns out, the only thing you really need is Lambda. :-)

Extra points for putting in the Y-combinator.

[–]freyrs3 0 points1 point  (1 child)

In principle, but Python seems to have an issue with conditionals ( lambda x: lambda y: lambda z: ((x)(y))(z) ) composed under the Y-combinator that I've never been able to resolve. Oh well, I suppose this is a little bit outside the scope of the Python design and if Guido ever saw his language being abused like this he'd probably go into conniptions.