[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running non-scheme scripts: some thoughts
From: |
Ludovic Courtès |
Subject: |
Re: Running non-scheme scripts: some thoughts |
Date: |
Mon, 21 Jan 2013 17:19:20 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Hello!
Andy Wingo <address@hidden> skribis:
> On Sun 26 Aug 2012 23:16, address@hidden (Ludovic Courtès) writes:
[...]
>> guile -c '(display "good")' --language=ecmascript -c '2 + 2;'
>
> A first patch is attached. It depends on fluid->parameter and
> current-language being a parameter, patches I will push soonish.
>
> Getting this right is a bit tricky. First of all your example doesn't
> work because things stop after a "-c".
Right.
> In my attached patch, -c and -s respect the current language, but -l
> does not. I have the feeling that we should lower `current-language'
> to boot-9, to allow some flexibility while avoiding loading up the
> compiler unless we have to.
Yes, I think we should do whatever it takes to have -l honor the current
language.
> Another thing is that --lang does not appear to set the language for the
> first REPL invocation. We should fix that too, I suppose.
Agreed.
> Finally, -e uses the Scheme reader. -e is a pretty strange argument
> anyway, but hey.
That’s probably OK.
> Thoughts?
Bikeshedding: I’d prefer --language.
Perhaps we could have a couple of tests for -c, for instance, as shell
scripts in test-suite/standalone?
Thanks!
Ludo’.