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)
On Tue 06 Dec 2011 01:36, Noah Lavine noah.b.lav...@gmail.com writes:
I guess in general I'd prefer something like Racket's #!lang directives,
though I'm not opposed to this approach. Dunno!
How about using language directives when available, and trying to
guess the language when not?
I'm
An hour and a half ago, e...@barzilay.org wrote:
On Tue 06 Dec 2011 01:36, Noah Lavine noah.b.lav...@gmail.com writes:
And about the directives, what should they be? ',language' is what
we used to use at the REPL, and I was about to write an email
arguing for that, until I realized that
On Sat 07 Jan 2012 02:56, Eli Barzilay e...@barzilay.org 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
20 minutes ago, Andy Wingo wrote:
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)
Hello June!
On Sun 12 Jun 2011 03:24, BT Templeton b...@hcoop.net writes:
What is `*current-language*' supposed to be used for?
It is supposed to be a default language for the compiler and other
things that are interested in languages.
I see that it's
set by `(@ (ice-9 eval-string) read
I guess in general I'd prefer something like Racket's #!lang directives,
though I'm not opposed to this approach. Dunno!
How about using language directives when available, and trying to
guess the language when not?
And about the directives, what should they be? ',language' is what we
used to
What is `*current-language*' supposed to be used for? I see that it's
set by `(@ (ice-9 eval-string) read-and-eval)' and by `(@ (system base
compile) read-and-compile)', but not by the REPL. So calling
`primitive-load-path' on a Scheme file from a REPL for another language
works as expected