Last call optimization.

Lest Andrae’s python examples lead the gentle reader into thinking Python supports tail recursion optimization, it doesn’t.

Guido doesn’t want it; it’s too schemey for him, he reckons it hides bugs, it’d make useful exceptions hard to come by, and it may well be very tricky to implement outside of C Python (Jython and Iron Python for example).

Look for the “Proper tail recursion” thread on python-dev.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: