[racket] a syntax-case question

From: Jon Stenerson (jonstenerson at comcast.net)
Date: Tue Sep 27 22:15:03 EDT 2011

I'm trying to understand what this is supposed to do:

(define (parse stx)
  (syntax-case stx ()
    [(_ p ...) #'(p ...)]))

(display (parse #'(1 2 3)))

If I run this in DrRacket with first line #lang racket
I get a syntax object containing a list: #<syntax:7:17 (2 3)>

If I run with #!r6rs instead I get a list of syntax objects:
{ #<syntax:9:21 2> #<syntax:9:23 3> }

Is this a legitimate difference between two languages? Or is one of them
right and the other wrong?


Posted on the users mailing list.