From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Per-module reader, take #2 Date: Thu, 20 Oct 2005 09:48:50 +0200 Organization: LAAS-CNRS Message-ID: <87r7agvdb1.fsf@laas.fr> References: <87u0gp9lm3.fsf@laas.fr> <877jd3lkdq.fsf@ossau.uklinux.net> <87hdc62a6c.fsf@laas.fr> <87irw49twc.fsf@laas.fr> <87irw3prgp.fsf@ossau.uklinux.net> <8764rw7b9q.fsf_-_@laas.fr> <871x2j98qb.fsf@ossau.uklinux.net> <87u0ffnudk.fsf@laas.fr> <87sluxb0xt.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129800298 31486 80.91.229.2 (20 Oct 2005 09:24:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 09:24:58 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 20 11:24:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESWdr-0006Go-7M for guile-devel@m.gmane.org; Thu, 20 Oct 2005 11:23:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESWdq-0007N3-Fz for guile-devel@m.gmane.org; Thu, 20 Oct 2005 05:23:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESVGR-0003PM-JM for guile-devel@gnu.org; Thu, 20 Oct 2005 03:55:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESVEu-0003FS-2I for guile-devel@gnu.org; Thu, 20 Oct 2005 03:53:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESVE2-00032M-D2 for guile-devel@gnu.org; Thu, 20 Oct 2005 03:52:34 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ESVE2-0006ju-CA for guile-devel@gnu.org; Thu, 20 Oct 2005 03:52:34 -0400 Original-Received: by laas.laas.fr (8.13.1/8.13.4) with SMTP id j9K7qVDC013797; Thu, 20 Oct 2005 09:52:32 +0200 (CEST) Original-To: Neil Jerram X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 29 =?iso-8859-1?Q?Vend=E9miaire?= an 214 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Neil Jerram , guile-devel@gnu.org In-Reply-To: <87sluxb0xt.fsf@ossau.uklinux.net> (Neil Jerram's message of "Wed, 19 Oct 2005 23:23:58 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5326 Archived-At: Hi Neil, Neil Jerram writes: > I don't think it should be connected with modules, though. In my > view: > > - modules should be about identifier access and visibility (including > issues such as possible separate compilation in future), and nothing > else (and yes, this does imply that #:use-syntax was a mistake) Right. > - the appropriate unit of scope for your custom readers should be the > file, not the module; for two reasons in particular: This makes sense, too. > - the file makes sense as a unit within which the coder would want > custom reading rules > > - associating a reader with a file instead of with a module means > that your whole enhancement will work for code that is not > organized into a module, as well as for that which is! Well, yes, this makes sense. > What do you think? If you agree, I think the implication is that two > APIs (which can probably be straightforward procedures) would be > useful: > > 1. A way to say "change the reader to XXX for the rest of this file". I believe `set-current-reader' (introduced in the second patch) can do this job pretty well. What do you think? > 2. A way to say "load FILE using reader XXX". This is not really an issue since one can always write their own `load-with-reader' procedure. Of course, we could also provide one with Guile (like `primitive-load-with-reader') taking a reader as a second argument. Thanks for your comments! Ludovic. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel