unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* rfc (define-module ... #:use-modules ...)
@ 2007-10-04 14:10 Thien-Thi Nguyen
  2007-10-04 15:29 ` Ludovic Courtès
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Thien-Thi Nguyen @ 2007-10-04 14:10 UTC (permalink / raw)
  To: guile-user

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-10-07 17:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 14:10 rfc (define-module ... #:use-modules ...) Thien-Thi Nguyen
2007-10-04 15:29 ` Ludovic Courtès
2007-10-04 18:40   ` Thien-Thi Nguyen
2007-10-04 15:30 ` Mike Gran
2007-10-04 16:29   ` Ludovic Courtès
2007-10-04 19:12   ` Thien-Thi Nguyen
2007-10-04 17:14 ` Clinton Ebadi
2007-10-04 19:09   ` Thien-Thi Nguyen
2007-10-04 19:21   ` Klaus Schilling
2007-10-04 19:18 ` Klaus Schilling
2007-10-05 23:47 ` Keith Wright
2007-10-06  9:59   ` Thien-Thi Nguyen
2007-10-07  4:05     ` Keith Wright
2007-10-07  9:37       ` Thien-Thi Nguyen
2007-10-07 14:23         ` Ludovic Courtès
2007-10-07 15:15           ` Thien-Thi Nguyen
2007-10-07 17:11             ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).