[r6rs-discuss] Libraries, scripts and programs

From: Michael Sperber <sperber>
Date: Tue Oct 24 07:32:55 2006

[I am not speaking for the R6RS editors.]

AndrevanTonder <andre_at_het.brown.edu> writes:

> I have a question regarding the intent of the editors as to how
> programs might be divided into files. I am of the school that
> despises having to divide a small program into more than one file just
> to make it work. So my question is: It seems that an implementation
> is allowed to permit the following organization all in one file:
>
> (library foo --------)
> #! /usr/bin/env scheme-script
> (import foo) -------))
>
> where the first non-library line delimits the start of the script.
> This seems to be explicitly allowed by (7.1). Is this correct?

The draft is quite vague on that point---it defines what the syntax of
scripts and libraries is, and assumes there's some way to figure out
that a piece of text is one, the other, or something else entirely.
Originally, I believe there was the notion that libraries would really
be a distribution format, and that original assumption (since
exorcised from the report) was that the same would hold for scripts.
This would seem to imply that there's need for action here somewhere.

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Tue Oct 24 2006 - 07:32:45 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC