Re: Comments on define-restartable (was Re: New draft (#8) and last call for comments on SRFI 255: Restarting conditions)
Wolfgang Corcoran-Mathe 14 Dec 2024 17:22 UTC
Hi John, and thanks for your comments!
On 2024-12-13 22:17 -0500, Wolfgang Corcoran-Mathe wrote:
> I’m forwarding John’s message to the list. I think there was a
> missing CC.
>
> ----- Forwarded message from John Cowan <xxxxxx@ccil.org> -----
>
> We shouldn't remove something useful just because it's not tail recursive.
> Fold-right isn't tail recursive, but when you need it you need it.
The problem is that you might expect a procedure defined with
‘define-restartable’ to be capable of tail-calling itself. As Marc
says, it probably should be a drop-in replacement for ‘define’.
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>