From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel,gmane.comp.lang.racket.devel Subject: Re: [racket-dev] Enhancement to the syntax system? Date: Tue, 10 Jul 2012 17:44:47 +0200 Message-ID: References: <877gumufmq.fsf@gnu.org> <87r4stss4d.fsf@gnu.org> <878vf0o7gs.fsf@gnu.org> <87pq85dj8o.fsf@gnu.org> <87sjd058ia.fsf@gnu.org> <4FFC3D72.8070506@gentoo.org> <20476.16781.257276.194149@winooski.ccs.neu.edu> <20120710150315.B7B27650059@mail-svr1.cs.utah.edu> <87a9z7tz6n.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0447875531a51504c47b9c44 X-Trace: dough.gmane.org 1341935117 21228 80.91.229.3 (10 Jul 2012 15:45:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 15:45:17 +0000 (UTC) Cc: Matthew Flatt , "dev@racket-lang.org" , Eli Barzilay , guile-devel@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jul 10 17:45:15 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Soccf-00032e-Qu for guile-devel@m.gmane.org; Tue, 10 Jul 2012 17:45:10 +0200 Original-Received: from localhost ([::1]:37712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Socce-0000cX-UC for guile-devel@m.gmane.org; Tue, 10 Jul 2012 11:45:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoccY-0000Xv-3d for guile-devel@gnu.org; Tue, 10 Jul 2012 11:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoccM-0003Jh-AL for guile-devel@gnu.org; Tue, 10 Jul 2012 11:45:01 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:58943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoccM-0003JO-3M; Tue, 10 Jul 2012 11:44:50 -0400 Original-Received: by ggm4 with SMTP id 4so153100ggm.0 for ; Tue, 10 Jul 2012 08:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=y30T9mnaN9u+2cdXeorA2gFsZPvv/vtPkCyE0s7TJy8=; b=ZNxm6FNVM3poLAXZnn2OAOQ71bTsfqr9eoUKifjzmyOirJJi7sTrWfBRCg6lzQkBiR qsHWOrIscvxxohEOzO3yaMbiweYprA4Xa5LaR0BLygUkZng/czx5VeqYwlRI5HXvdvj3 vMQEGPSLVaxwG6klpyN/WaxJyPtgvvIqbu+xSvB8+wAmgDPyF1PRm4svMGc27ZZ8386h 91nzfsyW0BJjK+2cqbDLyxRjibTGvu1yPkuFZd9fgyw/NCy/+gFNGsqcRQ/RywNk7phX jrl+L4YLJUoN6GhsffLdqQ7Emk6i9rQ2pmGk+ASjc2bx7oQa8atLNPo1rLCgQI8zoF5X /0EQ== Original-Received: by 10.50.237.72 with SMTP id va8mr11658969igc.17.1341935087362; Tue, 10 Jul 2012 08:44:47 -0700 (PDT) Original-Received: by 10.50.41.196 with HTTP; Tue, 10 Jul 2012 08:44:47 -0700 (PDT) In-Reply-To: <87a9z7tz6n.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14732 gmane.comp.lang.racket.devel:6400 Archived-At: --f46d0447875531a51504c47b9c44 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable samth made a pointer to http://srfi.schemers.org/srfi-72/srfi-72.html It does not look like guile racket etc. have implemented this yet. Am I wrong? This is precisely what I'm after! On Tue, Jul 10, 2012 at 5:26 PM, Ludovic Court=E8s wrote: > Hi, > > Matthew Flatt skribis: > > > It's natural --- but not correct --- to think that #` is responsible > > for hygiene, in which case `(f #'x)' should keep the given `x' separate > > from the `let'-bound `x' in the result. > > [...] > > > If you change the example to > > > > #lang racket > > (begin-for-syntax > > (define-syntax-rule (f body) > > #`(let ([x 1]) body))) > > (define-syntax (m stx) > > (with-syntax ([zz (f x)]) #`(let ([x 2]) zz))) > > (m) > > > > so that `f' is used as a macro instead of a function, then you get 2, > > since the macro-expansion of `(f x)' keeps the `x's separate. > > Interesting. Thanks for the clarification and examples. > > Ludo=92. > > --f46d0447875531a51504c47b9c44 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable samth made a pointer to

http://srfi.schemers.org/srfi-72/srfi-72.html

It = does not look like guile racket etc. have implemented this yet.

Am I= wrong?

This is precisely what I'm after!


--f46d0447875531a51504c47b9c44--