Hi,

Andy Wingo <wi...@pobox.com> skribis:

> Guile's REPL does do that, yes.  I think that Noah's proposal was to pun
> the ,language command so that in a file, instead of 
>
>    #!lang r5rs
>    (eval '(+ 1 2) (scheme-report-environment 5))
>
> you could have
>
>    ,language r5rs
>    (eval '(+ 1 2) (scheme-report-environment 5))
>
> Cute.  I guess it would work if we changed the reader, for the same
> reason that it works at the REPL.

Then I think (1) the hash form is preferable over the comma form for the
reason you gave, and (2) we should have an “meta-reader” stacked on top
of ‘read’ that takes precedence over ‘read’ when a hash form is seen, as
Eli noted.

Thanks,
Ludo’.


Reply via email to