[R6RS] Yet another question (to Matthew I guess)
Matthew Flatt
mflatt
Tue Sep 28 09:03:12 EDT 2004
At Tue, 28 Sep 2004 14:28:44 +0200, Manuel Serrano wrote:
> Does it mean that the following program *must* raise an error:
>
> -----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
> (module foo r6rs
>
> (display (foo 3))
>
> (define (foo x) x)
> )
> -----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
Yes.
> If it does I don't see how the compiler will be able to do a good job
> when compiling function calls...
Here again, I'll have to let others take up the question.
> This syntax avoids wasting characters at the left side of the screen
> and it gets rid of this ugly closing parenthesis after the last
> definition of the last expression.
Fair enough. I just really like S-expressions, and the parentheses
around a module enable a useful level of interaction in a REPL.
Matthew
More information about the R6RS
mailing list