Re: Reawakening keywords Marc Nieper-Wißkirchen 25 Apr 2020 07:51 UTC

Am Sa., 25. Apr. 2020 um 02:07 Uhr schrieb John Cowan <xxxxxx@ccil.org>:
>
> I don't see how that's even possible.  To transform a let-keywords-style call like (foo 10 20 'baz 30) into (foo 10 20 :baz 30) or (foo 10 20 #:baz 30) or (foo 10 20 baz: 30) as the case may be, the call needs to be wrapped in a macro of some sort.

I also don't see how this could be made possible. Insofar, such a
protocol cannot be the basis of SRFI 177 whose purpose is to abstract
all native keyword systems out there to some common denominator.

This let-keywords-style could, however, be the basis for SRFIs that
aim for inclusion into R7RS-large because it is readily supported by
any system, no less performant than CL-style keywords, it does work
with apply and does not need any new (lexical) syntax.

Now if people want to write code that is portable between various
native keyword systems, including the let-keywords-style system, they
would use SRFI 177. For people who just want to write portable
R7RS-large code, this won't be necessary; they would just use the
let-keywords-style as is.

I think this is the best we can get - unless we want to have some very
fancy keyword system in R7RS-large, which hasn't found much supporters
yet.

-- Marc