[gambit-list] syntax-case and procedures with keyword parameters
Álvaro Castro-Castilla
alvaro.castro.castilla at gmail.com
Sat Mar 3 13:49:33 EST 2012
Hi
> 1) Rewrite invocation to form (apply target-proc (list arg0 arg1 etc.
> (string->keyword "key-arg-1") val-1)
>
Nice, this works for procedures like compile-file.
> 2) Make a wrapper that's implemented and loaded outside of the syntax-case
> lib - (invoke-procedure compile-file '((arg0-v arg2-v) (key-arg-1 . val-1))
This works for sure, but means that you have to isolate procedures in
a module and compile. This sounds like a dirty solution soon leading
to issues.
I wonder why Gambit doesn't include a syntax-rules implementation that
is compatible with DSSSL and cond-expand, it belongs to R5RS.
Thanks Mikael!
More information about the Gambit-list
mailing list