SRFI 149: Basic Syntax-rules Template Extensions Arthur A. Gleckler (02 Jan 2017 04:50 UTC)
typo in Rationale example? Per Bothner (02 Jan 2017 05:33 UTC)
Re: typo in Rationale example? Marc Nieper-Wißkirchen (02 Jan 2017 08:21 UTC)
Re: typo in Rationale example? Arthur A. Gleckler (02 Jan 2017 22:56 UTC)

typo in Rationale example? Per Bothner 02 Jan 2017 05:33 UTC

"A valid example (which evaluates to (((foo 1) (foo 2)) ((baz 3) (baz 4)))) is given by:

  (let-syntax
      ((foo
       (syntax-rules ()
         ((foo (a b ...) ...) '(((a b) ...) ...)))))
    (foo (bar 1 2) (baz 3 4)))
"

Kawa and Chibi-Scheme both return
   (((bar 1) (bar 2)) ((baz 3) (baz 4)))
which seems to make more sense.

FWIW The first example in the Rationale also works in Kawa.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/