Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Denis Washington (03 Aug 2011 21:50 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Andre van Tonder (03 Aug 2011 21:59 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Andre van Tonder (03 Aug 2011 22:05 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Alex Shinn (04 Aug 2011 01:20 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 John Cowan (04 Aug 2011 03:46 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Alex Shinn (04 Aug 2011 03:52 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 Andre van Tonder (04 Aug 2011 04:06 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 John Cowan (04 Aug 2011 21:45 UTC)
Re: [Scheme-reports] Draft 3 Comments: Chapter 6 John Cowan (05 Aug 2011 05:30 UTC)

Re: [Scheme-reports] Draft 3 Comments: Chapter 6 John Cowan 04 Aug 2011 21:43 UTC

Alex Shinn scripsit:

> It's the environment programs start with.

Ah.  So "program" means "top-level program" in the R6RS sense.
I'm not sure I like that.

> The result is that any program can be cut&paste into
> an interactive REPL and still work, and any interactive
> session can be saved and used as a program, so long
> as it's prefixed with (import (scheme base)).

Yes to the first, no to the second, because the REPL session
may use names bound in the REPL but not imported into the
top-level environment.  This is precisely why I don't want
the top-level environment to be different from the REPL.
If you want a clean environment, write a module.

--
John Cowan                                cowan@ccil.org
At times of peril or dubitation,          http://www.ccil.org/~cowan
Perform swift circular ambulation,
With loud and high-pitched ululation.

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