From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.lisp.guile.devel Subject: Re: (define-module (foo) #:import (...)), a la r6rs Date: Thu, 28 Jul 2011 23:52:03 +0200 Message-ID: References: <87fwlqvgg9.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311889948 20708 80.91.229.12 (28 Jul 2011 21:52:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2011 21:52:28 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jul 28 23:52:25 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 1QmYVD-0000Gx-Tw for guile-devel@m.gmane.org; Thu, 28 Jul 2011 23:52:24 +0200 Original-Received: from localhost ([::1]:57935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmYVD-0004Ra-HJ for guile-devel@m.gmane.org; Thu, 28 Jul 2011 17:52:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmYVB-0004RU-6H for guile-devel@gnu.org; Thu, 28 Jul 2011 17:52:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmYVA-0007fv-0V for guile-devel@gnu.org; Thu, 28 Jul 2011 17:52:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmYV9-0007fr-P5 for guile-devel@gnu.org; Thu, 28 Jul 2011 17:52:19 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QmYV6-0000C4-Lv for guile-devel@gnu.org; Thu, 28 Jul 2011 23:52:16 +0200 Original-Received: from 168.red-79-145-116.dynamicip.rima-tde.net ([79.145.116.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jul 2011 23:52:16 +0200 Original-Received: from jao by 168.red-79-145-116.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jul 2011 23:52:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 168.red-79-145-116.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (darwin) X-Attribution: jao X-URL: Cancel-Lock: sha1:wVsa3hAclaT7JwmmIs3H7GDapC4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:12689 Archived-At: On Thu, Jul 28 2011, Andy Wingo wrote: > Hi, > > I was hacking on Dorodango today, in a script that happened to have a > Guile-style (define-module ...) block, and I was importing pieces of an > rnrs library. Then I needed to update the import set to provide what > was needed. In the middle of making a keyboard macro to add > #:use-module before the library names, I realized that `library' is > actually a lot better in this regard, in that you just have one `import' > block, and all the libraries are listed there without having a prefix on > each one. > > 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) > ...)) fwiw, i like the second form better (looks more schemish to me), and i agree both forms are an improvement over #:use-module. jao -- I don't necessarily agree with everything I say. -Marshall McLuhan (1911-1980)