Assorted comments Peter McGoron (13 Apr 2026 23:51 UTC)
Re: Assorted comments Andrew Tropin (14 Apr 2026 03:21 UTC)
Re: Assorted comments Peter McGoron (20 Apr 2026 22:16 UTC)
Re: Assorted comments Andrew Tropin (21 Apr 2026 09:00 UTC)
Re: Assorted comments Peter McGoron (21 Apr 2026 11:45 UTC)
Re: Assorted comments Andrew Tropin (21 Apr 2026 13:21 UTC)

Re: Assorted comments Peter McGoron 21 Apr 2026 11:45 UTC

On 4/21/26 05:00, Andrew Tropin wrote:
> Also, you don't have to implement it via procedure properties/tags, you
> can make suite-thunk create a thunk, register it in some common global
> registry and return the thunk.  This way (suite-thunk? ...) will use
> this registry to determine if arbitrary lambda is suite-thunk or not.
>
> This only problematic in terms of gc, as those suites won't be gced.
> But for dev and test envs it should be fine.

Technically speaking, the R6RS has no portable way to make a registry of
procedures. However I think every implementation allows putting
procedures in alist as a key, so that is probably not a problem in practice.

I assume most suite-thunks would exist in libraries, where they wouldn't
be GC'd anyways. So I agree, it should be fine.

-- Peter McGoron