[Scheme-reports] Fwd: Comments on draft 6 about call/cc Alex Shinn (20 Feb 2012 07:37 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc Alaric Snell-Pym (20 Feb 2012 10:32 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc Jussi Piitulainen (20 Feb 2012 11:15 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc John Cowan (20 Feb 2012 15:49 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc Jussi Piitulainen (22 Feb 2012 11:10 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc Alaric Snell-Pym (20 Feb 2012 12:49 UTC)
Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc Perry E. Metzger (20 Feb 2012 18:57 UTC)

Re: [Scheme-reports] Fwd: Comments on draft 6 about call/cc John Cowan 20 Feb 2012 15:48 UTC

Peter Bex scripsit:

> Moving it to a library paves the way for taking it out in a later
> version of the standard, but also means yet another thing to add to
> your imports statement when you do want to use it.  We shouldn't
> require the user to type in loads of names just to get simple
> behaviour that you'd get with R5RS without typing in anything.

Quite so.  Note that an R7RS REPL imports an implementation-defined
set of libraries by default; I'd expect a complete implementation to
start up with all libraries loaded, or at least have a mode in which
that happens.

> Also, I still am concerned about the fact that exceptions don't
> implicitly cause [call-]with-* to close their associated port.

It's precisely because there might be an escape procedure that we
can't close the port; once closed, it can't be reopened as part of
reinstituting the dynamic scope.

In any case, exceptions are handled within the dynamic environment of
the raise (except that the current handler is reverted).  So it's
really the non-local exit that would need or be able to close the port.
Since our only implementation of non-local exit is call/cc, we're
stuck.

--
John Cowan            http://www.ccil.org/~cowan     cowan@ccil.org
Uneasy lies the head that wears the Editor's hat! --Eddie Foirbeis Climo

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports