guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rfc (define-module ... #:use-modules ...)


From: Mike Gran
Subject: Re: rfc (define-module ... #:use-modules ...)
Date: Thu, 4 Oct 2007 08:30:04 -0700 (PDT)

--- Thien-Thi Nguyen <address@hidden> wrote:

> 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'.
> 

I like it for two reasons.

1. The lack of parallelism between the (use-modules) procedure and the
#:use-module form has always bothered me.

2. It would then be a bit easier to create a mapping to the r6rs
library form.  In r6rs libraries, you can include multiple libraries
with one "import" command.





reply via email to

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