From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: (define-module (foo) #:import (...)), a la r6rs Date: Thu, 10 Nov 2011 10:35:24 -0200 Message-ID: <20111110103524.6794566b@altosw.be> References: <87fwlqvgg9.fsf@pobox.com> <87wrf2w13m.fsf@gnu.org> <87hb2cdhc0.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320928549 19163 80.91.229.12 (10 Nov 2011 12:35:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2011 12:35:49 +0000 (UTC) Cc: Ludovic =?UTF-8?B?Q291cnTDqHM=?= , guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 10 13:35:44 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROTr4-0004wE-BG for guile-devel@m.gmane.org; Thu, 10 Nov 2011 13:35:42 +0100 Original-Received: from localhost ([::1]:57065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROTr3-0003S0-UW for guile-devel@m.gmane.org; Thu, 10 Nov 2011 07:35:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROTr1-0003Rj-Kd for guile-devel@gnu.org; Thu, 10 Nov 2011 07:35:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROTr0-0005ld-Cr for guile-devel@gnu.org; Thu, 10 Nov 2011 07:35:39 -0500 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:60518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROTr0-0005lV-6y; Thu, 10 Nov 2011 07:35:38 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 9CF18A04C2FC; Thu, 10 Nov 2011 13:35:35 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id 6VruTLRyhMgj; Thu, 10 Nov 2011 13:14:28 +0100 (CET) Original-Received: from localhost (unknown [139.82.89.24]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id D7B25A04C492; Thu, 10 Nov 2011 13:35:27 +0100 (CET) In-Reply-To: <87hb2cdhc0.fsf@pobox.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.4; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 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:12881 Archived-At: Hi all, > >> So what do you all think about: > >> > >> (define-module (foo) > >> #:import ((bar) > >> (only (baz) qux foo) > >> ...)) > >> > >> Or even: > >> > >> (define-module (foo) > >> (import (bar) > >> (only (baz) qux foo) > >> ...)) > > > > I=E2=80=99d prefer #:use-modules (plural), for consistency: > > > > (define-module (foo) > > #:use-modules ((bar) > > (baz) #:select (qux foo) > > (chbouib) #:renamer (symbol-prefix-proc 'p))) > > > > What do you think? >=20 > I don't like the paren placement so much. Consistency is important, but > TBH I think that we should phase out the "use-module" / "use-modules" > terminology, in favor of "import" terminology of r6rs and the coming > r7rs. >=20 > What do you think about that? :-) >=20 > Andy I 'feel' that a module uses another or several other modules. I feel that '= import' is too close to some sort of 'cuisine interne', to my HO. Therefore I would= prefer, consistently with myself :), #:use-modules What would be a must for me, and may be others ?, would be having a possibi= lity within 'define-module', to specify or globally or per used modules, that we= also wish to re export their public interface. Cheers, David