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 Subject: Re: syntax closures Date: Tue, 22 Jan 2013 21:37:56 +0100 Message-ID: References: <87ip6pv0jm.fsf@pobox.com> <87d2wxqikf.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358887081 29425 80.91.229.3 (22 Jan 2013 20:38:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2013 20:38:01 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 22 21:38:20 2013 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 1Txkbs-0004Hh-3C for guile-devel@m.gmane.org; Tue, 22 Jan 2013 21:38:20 +0100 Original-Received: from localhost ([::1]:38254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txkba-000553-7T for guile-devel@m.gmane.org; Tue, 22 Jan 2013 15:38:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxkbW-00054p-QH for guile-devel@gnu.org; Tue, 22 Jan 2013 15:38:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxkbV-0004ig-Du for guile-devel@gnu.org; Tue, 22 Jan 2013 15:37:58 -0500 Original-Received: from mail-qa0-f53.google.com ([209.85.216.53]:35114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxkbV-0004ia-9U for guile-devel@gnu.org; Tue, 22 Jan 2013 15:37:57 -0500 Original-Received: by mail-qa0-f53.google.com with SMTP id a19so64149qad.12 for ; Tue, 22 Jan 2013 12:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=wpihSlvD9ZO6YZVAUs52vWTLE0XreYSGf36pceCtw7s=; b=rHi4fbJ6rAAf35RAVaPFpSqssd90NvXGgUgys16L5hlXHb4tvPloGcPccVtLYIRGnX NGHKmXmZ/JH4lbemfzMct/8shA8cVPoE7DCsMdLjlEJsV8Pk/mNZCMcNZqKEVcr44Coz yAnDrPNISWRQlv2SHeJty5r8FokxKX9bkmO5iRXg+y24bOu28Et1gqTAFhbQRnky25jw RowsW8Igo7jjo4M2Qj2nOvZkdOft9vhAJpL8nUmRnjh9114zjx/i31XLPqiWtQsoRIjI xsPpEYgbcLLUrKvwXOh6gcnRTFrjm/XnXRxtkU3o281IT+D6Wfk/A+HuYkeOTsX1i3xz C4iw== X-Received: by 10.224.222.82 with SMTP id if18mr24921141qab.9.1358887076722; Tue, 22 Jan 2013 12:37:56 -0800 (PST) Original-Received: by 10.49.28.135 with HTTP; Tue, 22 Jan 2013 12:37:56 -0800 (PST) In-Reply-To: <87d2wxqikf.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.216.53 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:15551 Archived-At: Ok, the unsyntax-72 code cannot be cleanly done I think. You really need to use a reader macro. I leave the code base modding the reader char #. as before and will simple wait for a a possibility of per port reader option to be configured via a library. /Stefan On Tue, Jan 22, 2013 at 5:38 PM, Andy Wingo wrote: > On Tue 22 Jan 2013 17:19, Stefan Israelsson Tampe writes: > >>> > (read-hash-extend #\_ syntax-closure-reader) >>> >>> Have you tried having your srfi-72 module export a binding for unsyntax? >> >> I would like to use that of cause, but does it mix well with other >> already written code? > > It should work in a modular fashion. #,foo reads as (unsyntax foo), and > the meaning of that depends on the binding of unsyntax that is current. > > Andy > -- > http://wingolog.org/