Re: [racket-dev] paren-shape question

2012-03-25 Thread Matthew Flatt
At Sun, 25 Mar 2012 19:58:29 -0500, Robby Findler wrote: > On Sun, Mar 25, 2012 at 7:18 PM, Danny Yoo wrote: > > I'm still somewhat confused, because of the following: Compare: > > > > (syntax/loc #'foo [app op ...]) > > > > vs: > > > > (syntax [app op ...]) > > > > The first does not hav

Re: [racket-dev] paren-shape question

2012-03-25 Thread Robby Findler
On Sun, Mar 25, 2012 at 7:18 PM, Danny Yoo wrote: > I'm still somewhat confused, because of the following: Compare: > > (syntax/loc #'foo [app op ...]) > > vs: > > (syntax [app op ...]) > > The first does not have paren-shape defined, while the second does. > Is this intentional? I'm not

Re: [racket-dev] paren-shape question

2012-03-25 Thread Danny Yoo
On Sun, Mar 25, 2012 at 8:09 PM, Robby Findler wrote: > It comes from the way syntax properties are propagated through macro > transformers. There is some explanation of this in the docs; search > for syntax-property and scroll up. Ok. Yikes, this is more complicated than I expected. Thanks.

Re: [racket-dev] paren-shape question

2012-03-25 Thread Robby Findler
It comes from the way syntax properties are propagated through macro transformers. There is some explanation of this in the docs; search for syntax-property and scroll up. Robby On Sun, Mar 25, 2012 at 7:05 PM, Danny Yoo wrote: > I'm getting confused by some behavior with regards to paren-shape.

[racket-dev] paren-shape question

2012-03-25 Thread Danny Yoo
I'm getting confused by some behavior with regards to paren-shape. Here's what I see: #lang racket ;; (define-for-syntax (square-brackets? stx) (eq? (syntax-property stx 'paren-shape) #\[)) (define-syntax (squa