Re: Composable continuations and reset/shift
Marc Nieper-Wißkirchen 19 Nov 2022 10:51 UTC
Am Sa., 19. Nov. 2022 um 10:00 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:
>
> On Fri, Nov 18, 2022 at 9:48 PM Marc Nieper-Wißkirchen <xxxxxx@gmail.com> wrote:
>>
>>
>> We shouldn't compare it too closely with the traditional
>> implementation of parameters through dynamic-wind, I think because
>> dynamic-wind cannot implement the tail context guarantee.
>
>
> Right.
> Srfi-226's with is implemented in terms of dynamic-wind, so it would behave like Gauche-release. This difference of behavior is better to be noted as well.
>
> BTW, the name 'with' may be too general? And ChezScheme seems to be using 'with' for different purpose (auxiliary syntax for macros). I don't have another good name yet, though.
Chez Scheme's "with" is only used in a deprecated macro facility
("extend-syntax"). I think, at least for the purpose of Chez, it is
safe to reuse the identifier.
The identifier "with" is undoubtedly quite general, but so are "let"
or "receive". I would be glad if "parameterize" had a shorter or less
complicated name.