guile-devel
[Top][All Lists]
Advanced

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

Re: *current-language*


From: Andy Wingo
Subject: Re: *current-language*
Date: Sat, 07 Jan 2012 03:09:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Sat 07 Jan 2012 02:56, Eli Barzilay <address@hidden> writes:

> FWIW, that's true -- and a reason that I plan to change what xrepl
> (our command-line thing which I added to Racket recently) so that it
> intercepts any line that starts with a "," which means that it would
> work no matter what the actual language reader does with that.

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.

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

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