functional programming

Denys Duchier Denys.Duchier at
Fri Feb 25 10:57:15 EST 2000

Steve Holden <sholden at> writes:

> [remarks on the practicality of tail call optimization which
>  seemed to overlook the need to retain context for exception
>  handling]

No such thing was overlooked.  Calls appearing within the lexical
scope of a try are not tail calls; thus they are not subject to tail
call optimization...

... or you can implement exception handling using continuations :-)

oh hum...

Dr. Denys Duchier			Denys.Duchier at
Forschungsbereich Programmiersysteme	(Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45
Postfach 15 11 50			Phone: +49 681 302 5618
66041 Saarbruecken, Germany		Fax:   +49 681 302 5615

More information about the Python-list mailing list