[Top][All Lists]
[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 01:19:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Tue 06 Dec 2011 01:36, Noah Lavine <address@hidden> 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 fine with this, FWIW.
> 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 there is one big advantage to using the
> same thing as Racket - we might actually share some languages.
,language would be pretty cute, but I don't think it would work, as it
reads as (unquote language), and who knows what the binding of `unquote'
would be.
> Specifically, if someone had a Scheme file that started with '#!lang
> r5rs', it's possible that Guile and Racket could both run that file
> without modification. That seems pretty cool.
Yes, I agree, that would be nice. Perhaps we could even convince other
implementations that this is the right thing.
> Mixing other languages could be scary though.
Indeed :)
Regards,
Andy
--
http://wingolog.org/
- Re: *current-language*,
Andy Wingo <=