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

Reply via email to