Am Fr., 28. Okt. 2022 um 19:14 Uhr schrieb Shiro Kawai <shiro.ka...@gmail.com>:
>
> Now Gauche starts to support continuation marks natively (only the basic 
> srfi-157 is implemented and I'll expand it toward srfi-226).

This is excellent news!

>  So far as I understood, continuation marks *is* the dynamic environment, 
> without revealing too much internal details, isn't it?

I think one can formulate it in this way.

> Previously, I managed various internal dynamic contexts (e.g. exception 
> handlers, parameters) by dynamic-wind; when a continuation is invoked, before 
> and after handlers work hard to restore the dynamic state.  Once I reversed 
> the design, that is, letting continuation frames to hold the tip of the 
> current dynamic environment chain and simply restore it when popped, things 
> seem to become a lot simpler.

It is good to hear that it simplifies things because this is how new
features for Scheme should behave if possible.

Marc

Reply via email to