[plt-dev] struct match-expander a la struct-copy

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jun 25 16:37:24 EDT 2009

On Jun 24, Jay McCarthy wrote:
> I experimented with this a little bit and didn't like it too much,
> because to do it right you get into strangeness with super
> structures.  Can you think of some way around it?

Using

  (make-foo #:foo-x 1 #:foo-x 2)

is of course bad.  To make it analogous to function arguments you'd
need to have user-supplied keywords, and the only tricky bit is that
you also need to collect the keywords from a parent struct and throw
an error if there are conflicts.

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


Posted on the dev mailing list.