[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancement to the syntax system?
From: |
Ludovic Courtès |
Subject: |
Re: Enhancement to the syntax system? |
Date: |
Tue, 10 Jul 2012 17:22:36 +0200 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) |
Hi,
Stefan Israelsson Tampe <address@hidden> skribis:
> racket:
> (define-for-syntax (f x) #`(let ((x 1)) #,x))
>> (define-syntax (g x) (syntax-case x ()((_ y) #`(let ((x y)) #,(f #'x))))
> )
>> (g 4)
> 4
>
> In guile,
> scheme@(guile-user)> (define (f x) #`(let ((x 1)) #,x))
> scheme@(guile-user)> (define-syntax g (lambda (x) (syntax-case x () ((_ y)
> #`(let ((x y)) #,(f #'x))))))
> scheme@(guile-user)> (g 4)
> $1 = 1
> !
>
> I much prefer rackets version here. I will file a bug report and also try
> to understand what spec that racket is following!
Aaah, indeed, that’s a “better” outcome! :-)
Ludo’.
- Re: Enhancement to the syntax system?, (continued)
- 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, 2012/07/10
- 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 <=
- Re: Enhancement to the syntax system?, Stefan Israelsson Tampe, 2012/07/10