From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: rfc (define-module ... #:use-modules ...) Date: Thu, 04 Oct 2007 16:10:45 +0200 Message-ID: <87przvnf6i.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191507122 26288 80.91.229.12 (4 Oct 2007 14:12:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2007 14:12:02 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Oct 04 16:11:59 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdRQa-0000fz-LV for guile-user@m.gmane.org; Thu, 04 Oct 2007 16:11:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdRQW-0008Pe-1k for guile-user@m.gmane.org; Thu, 04 Oct 2007 10:11:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdRQS-0008PZ-Gm for guile-user@gnu.org; Thu, 04 Oct 2007 10:11:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdRQR-0008PN-Qu for guile-user@gnu.org; Thu, 04 Oct 2007 10:11:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdRQR-0008PK-Ms for guile-user@gnu.org; Thu, 04 Oct 2007 10:11:39 -0400 Original-Received: from ppp-56-36.21-151.libero.it ([151.21.36.56] helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IdRQR-00082p-BZ for guile-user@gnu.org; Thu, 04 Oct 2007 10:11:39 -0400 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1IdRPZ-0007ir-BG for guile-user@gnu.org; Thu, 04 Oct 2007 16:10:45 +0200 X-Detected-Kernel: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6180 Archived-At: currently: (define-module (foo) #:use-module (a b c) #:use-module ((d e f) #:select (x y z)) #:export (bar)) proposed: (define-module (foo) #:use-modules (a b c) ((d e f) #:select (x y z)) #:export (bar)) that is, `#:use-modules X Y Z' would be exactly equivalent to `#:use-module X #:use-module Y #:use-module Z'. quantitatively, for N upstream (used) modules, this would result in N-1 fewer keywords required in the `define-module' form. what do people think of this syntatic sugar? (i was about to add it to guile 1.4.x, but thought perhaps if official guile maintainers have different ideas i should wait so as to be able to harmonize w/ their design (assuming the feature merits attention). perhaps we can start to build towards each other in this way.) thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user