takikawa / sweet-racket

A port of sweet expressions to Racket
http://pkg-build.racket-lang.org/doc/sweet/index.html
Other
47 stars 10 forks source link

would it make sense to treat lines beginning with #:keywords specially? #4

Closed AlexKnauth closed 9 years ago

AlexKnauth commented 9 years ago

For example, have

syntax-parse stx
  (a ...)
    #:with sum
    #'(+ a ...)
    #'(define x sum)

be equivalent to

(syntax-parse stx
  ((a ...)
   #:with sum
   #'(+ a ...)
   #'(define x sum)))

instead of

(syntax-parse stx
  ((a ...)
   (#:with sum)
   #'(+ a ...)
   #'(define x sum)))

Or would that mess too much with other things when you want it wrapped in parens, or would it just be a bad idea to start special-case-ing like this?