[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] ANN: first draft of R7RS small language available
On Fri, Apr 22, 2011 at 9:07 PM, OKUMURA Yuki <mjt@x> wrote:
> 2011/4/22 Alex Shinn <alexshinn@x>:
> - snip -
>> 3) minimize conflicts between approaches, and put the burden
>> of bugfixes in these cases on the broken implementations
>
> Is there any chance to put some annotation to module form? For example:
>
> (module (mysyntax)
> (export boo)
> (import (scheme base))
> (keyword =>) ;; keyword annotation
> (body
> (define-syntax boo
> (syntax-rules (=>)
> ...
>
> If implementation had Chicken/Chibi like semantics, just ignore this annotation.
> If implementation had R6RS like aux-syntax-should-be-bound semantics,
> 'generate' some binding from an anonymous module and bind it.
>
> It's not "always work" solution, but i think it covers major use cases.
> At least, i will implement some annotation scheme like this to make
> possible to import R7RS modules into R6RS programs.
> (And make code-beautifier happy..)
This is an interesting idea, but it doesn't help when the keyword
in question is bound to a normal procedure or syntax.
--
Alex
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports