Re: [racket] quasisyntax vs quasisyntax/loc

2013-06-04 Thread Tobias Hammer
Thanks for your answer. Did i understand it correct that neither quasisyntax nor quasisyntax/loc recognize quasisyntax/loc inside. So if these are used, quasisyntax/loc must currently be in the outmost layer? On Tue, 04 Jun 2013 12:07:39 +0200, Matthew Flatt wrote: The problem is that `

Re: [racket] quasisyntax vs quasisyntax/loc

2013-06-04 Thread Matthew Flatt
The problem is that `quasisyntax' doesn't recognize `quasisyntax/loc' as a kind of quasiquote. In terms of plain quasiquote, your example is analogous to > (define-syntax-rule (qq e) (quasiquote e)) > `(qq ,(+ 1 2)) '(qq 3) as opposed to > `(quasiquote ,(+ 1 2)) '`,(+ 1 2) A difference is

[racket] quasisyntax vs quasisyntax/loc

2013-06-04 Thread Tobias Hammer
Hi, i have a problem with nested quasisyntax, quasisyntax/loc and unsyntax. Two quasisyntax with one unsyntax gets me one level up, as expected. But two quasisyntax/loc with unsyntax somehow gets me to the outmost level. Can anybody tell me if this is intended or explain why this happens?