[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] ANN: first draft of R7RS small language available

On Sat, Apr 30, 2011 at 4:49 AM, Eli Barzilay <eli@x> wrote:
> For example, there's this post from Alex Shinn:
>  http://lists.gnu.org/archive/html/chicken-users/2008-04/msg00013.html

Note, this was specifically talking about the different
macro system implementations available in Chicken,
and the points do not necessarily generalize.  It's
further obsoleted by the fact that Chicken 4 now includes
only a single, native macro system, and the other
systems are no longer available.

As John Cowan explained, the absence of syntax-case
in WG2 came down to a vote, and there was simply not
nearly enough interest among the members in it.  If there's
enough community interest in it I'm sure we could still
include it, but it really does need a wrapper form to not
preclude the raw macro signature.  That is, in a standard
macro system designed to be compatible with alternate
systems, you can't assume that a macro expander takes
a single parameter.  Most SC based systems take three
parameters, and I've toyed with the idea of four or five.
So instead of

  (define-syntax foo
    (lambda (stx)
      (syntax-case stx () ...)))

we could use something like

  (define-syntax foo
      (lambda (stx)
        (syntax-case stx () ...))))

probably with a shortcut like

  (define-syntax foo
    (syntax-case-expander stx () ...))

But this is a WG2 issue, and I've still got a ton of WG1
mail to catch up on...


Scheme-reports mailing list