Would you expect anything different if it were a normal macro?

#lang racket

(define-syntax-rule (define-quote (arg ...) expr)
  (define (quote arg ...) expr))

(define-quote (x) 5)
(define-quote (x) 5)
(quote 3)

This also compiles without error, and also returns 3. Were you expecting a 
hygienic reader extension to behave differently?


> On Oct 18, 2015, at 9:03 AM, Gustavo Massaccesi <gust...@oma.org.ar> wrote:
> 
> I found a strange side effect of the use of the marks. This compiles
> without error:
> 
> #lang hygienic-quote racket
> 
> (define 'x 5)
> (define 'x 5)
> '3
> 
> But I think it's not a problem for real word use, and it's better than
> the standard behavior.
> 
> Gustavo


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to