emacs-devel
[Top][All Lists]
Advanced

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

Re: continuation passing in Emacs vs. JUST-THIS-ONE


From: Tomas Hlavaty
Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE
Date: Tue, 28 Mar 2023 09:23:21 +0200

On Sun 26 Mar 2023 at 21:35, Tomas Hlavaty <tom@logand.com> wrote:
> On Sat 25 Mar 2023 at 19:42, Tomas Hlavaty <tom@logand.com> wrote:
>>> I don't think so, no.  But you would need fancy rewriting if you wanted
>>> to allow
>>>
>>>     (concat foo (futur-let* (...) ...))
>
> or one could do it explicitly:
>
>    (concat foo (future-wait (futur-let* (...) ...)))

Looking at other languages, they do it explicitly.  The reason is, that
one might want to save the future, do something else and await the
future later at some point.  Not await it immediately:

   (let ((future (futur-let* (...) ...)))
     ...
     (concat foo (future-wait future)))



reply via email to

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