guile-devel
[Top][All Lists]
Advanced

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

Re: module naming


From: Rob Browning
Subject: Re: module naming
Date: 07 May 2001 08:51:56 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Marius Vollmer <address@hidden> writes:

> Nice! (the rest as well).
> 
> But shouldn't we use `use-module' here, not `use-moduleS'?  I think
> when specifying more arguments, we should restrict one statement to
> one module.

Sure.  I thought about that when typing, but figured I'd just address
one issue at a time :>

> > (define-module (my module)
> >   :use-module (ice-9 common-list) :rename (c++-envy-renamer 'cl))
> 
> Hmm, isn't the connection between :use-module and :rename a bit loose?
> We would have to parse ahead to find all keywords that apply to a
> :use-module.

Yes.  If that renamer is supposed to apply to ice-9, then i think we
should probably allow something more like:

  (define-module (my module)
   :use-module ((ice-9 common-list) :rename (c++-envy-renamer 'cl)))

or in an "in-line" fashion

  (define-module (my-module))
  (use-module (ice-9 common-list) :rename (c++-envy-renamer 'cl))

> I'd say, just let it happen.  Specify that it is undefined at what
> times these procedures are called (just like macro transformers).

I agree.

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

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