[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

  (define-module (foo)
    #:use-module (a b c)
    #:use-module ((d e f) #:select (x y z))
    #:export (bar))

  (define-module (foo)
    (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.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]