[plt-scheme] keywords (a backward-incompatible change)

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Oct 1 11:30:47 EDT 2005

On Oct  1, Alex Shinn wrote:
> At Sat, 1 Oct 2005 10:21:03 -0400, Eli Barzilay wrote:
> > 
> > So it seems like it would be easy to insert one more step to this
> > chain:
> > 
> >      (do-ec (g arg1 arg ...) cmd)
> >      ->
> >      (unkeywordify g (do-ec:do cmd) arg1 arg ...)
> > 
> > and make `unkeywordify' a syntax-case macro that will do this
> > transformation:
> 
> Indeed, the Gauche version of SRFI-42 uses this approach should you
> want to use it.

Well, the definition of `unkeywordify' would be pretty simple, and
probably relies on PLT names.


> The idea is a bit of a hack, and doesn't play well with user
> extensions to SRFI-42, but basically works.

AFAICT, if you want to define your own generator with srfi42, you can
either use a non :prefixed name, or define it as

  (define-syntax \:blah ...)

The first approach works as expected, the second one will make it
possible to use your syntax as :blah.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.