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