guile-devel
[Top][All Lists]
Advanced

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

Re: (define-module (foo) #:import (...)), a la r6rs


From: Mike Gran
Subject: Re: (define-module (foo) #:import (...)), a la r6rs
Date: Thu, 28 Jul 2011 14:40:04 -0700 (PDT)

From: Andy Wingo address@hidden

>
>Hi,
>
>I was hacking on Dorodango today, in a script that happened to have a
>Guile-style (define-module ...) block, and I was importing pieces of an
>rnrs library.  Then I needed to update the import set to provide what
>was needed.  In the middle of making a keyboard macro to add
>#:use-module before the library names, I realized that `library' is
>actually a lot better in this regard, in that you just have one `import'
>block, and all the libraries are listed there without having a prefix on
>each one.
>
>So what do you all think about:
>
>  (define-module (foo)
>    #:import ((bar)
>              (only (baz) qux foo)
>              ...))

We once discussed having a plural #use-modules in this thread.

http://lists.gnu.org/archive/html/guile-user/2007-10/msg00002.html

-Mike Gran




reply via email to

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