emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: named-let


From: Stefan Monnier
Subject: Re: named-let
Date: Sat, 09 Jan 2021 11:44:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> But with the recent tail-call optimization I installed into `master`,
>> the above `my-length` now works without eating up stack space.
> That's great news.

Probably not as great as you think.

> Is TCO always used (like in Scheme) or in which cases is it used or not used?

It's basically never used.  It's only applied for the particular case of
tail recursive calls to functions defined by `cl-labels` and only for
those calls that are "self-recursive" (i.e. come from within the code of
that function).

> Is it possible to turn it on or off?

No.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]