[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [racket-dev] Enhancement to the syntax system?
From: |
Eli Barzilay |
Subject: |
Re: [racket-dev] Enhancement to the syntax system? |
Date: |
Tue, 10 Jul 2012 10:51:57 -0400 |
20 minutes ago, Marijn wrote:
>
> It seems to me that both these results cannot be correct
> simultaneously, but I'll await the experts' opinion on that.
This does look weird:
#lang racket
(define-for-syntax (f stx) #`(let ([x 1]) #,stx))
(define-syntax (m stx)
(with-syntax ([zz (f #'x)]) #`(let ([x 2]) zz)))
(m)
evaluates to 1, but if I change the first two "stx" names into "x"
*or* if I change the argument name for the macro to "x", then it
returns 2.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
- Re: Enhancement to the syntax system?, (continued)
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/03
- Re: Enhancement to the syntax system?, Ludovic Courtès, 2012/07/03
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/03
- Re: Enhancement to the syntax system?, Marijn, 2012/07/04
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/04
- Re: Enhancement to the syntax system?, Ludovic Courtès, 2012/07/09
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/09
- Re: Enhancement to the syntax system?, Ludovic Courtès, 2012/07/10
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/10
- Re: Enhancement to the syntax system?, Marijn, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?,
Eli Barzilay <=
- Re: [racket-dev] Enhancement to the syntax system?, Matthew Flatt, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?, Ludovic Courtès, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?, Eli Barzilay, 2012/07/10
- Re: [racket-dev] Enhancement to the syntax system?, Ryan Culpepper, 2012/07/10
- Re: Enhancement to the syntax system?, Ludovic Courtès, 2012/07/10
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/10