[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rfc (define-module ... #:use-modules ...)
From: |
Thien-Thi Nguyen |
Subject: |
rfc (define-module ... #:use-modules ...) |
Date: |
Thu, 04 Oct 2007 16:10:45 +0200 |
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
- rfc (define-module ... #:use-modules ...),
Thien-Thi Nguyen <=
- Re: rfc (define-module ... #:use-modules ...), Mike Gran, 2007/10/04
- Re: rfc (define-module ... #:use-modules ...), Ludovic Courtès, 2007/10/04
- Re: rfc (define-module ... #:use-modules ...), Clinton Ebadi, 2007/10/04
- Re: rfc (define-module ... #:use-modules ...), Klaus Schilling, 2007/10/05
- Re: rfc (define-module ... #:use-modules ...), Keith Wright, 2007/10/05