guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *current-language*


From: Ludovic Courtès
Subject: Re: *current-language*
Date: Sat, 07 Jan 2012 23:41:32 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi,

Andy Wingo <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]