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

Re: Some Dylan improvements



On Thu, 30 Mar 2000 09:45:06 -0500 (EST), Hugh Greene <q@tardis.ed.ac.uk>
wrote:

> On Thu, 30 Mar 2000, Scott McKay wrote:
> > Eric Gouriou wrote in message <38E1B578.BC05AD4E@cup.hp.com>...
> > >
> > > Hello,
> > >
> > > Following the module/library discussion, I would expose to the
> > >community some ideas I have on how Dylan could be improved. ...
> > >
> > > Proposed changes (more comments below):
> > > ...
> > >B) add a way to specify a module interface beyond mere names
> > 
> > I think this is a good idea ...  Yes, there is the "two hunks of code"
> > problem, but ... if this were an optional part of 'define module', it
> > would be worth trying. 
> 
> Yes, absolutely, this should be optional, just like type declarations,
> sealing etc.  I see no reason why you shouldn't provide type info for some
> exported names and not for others (in which case they'd effectively have
> type <object>), specially in incremental development.

An alternative might be to put the note on the binding definitions:

	define exported generic foo () => ();

This would avoid the redundancy. Modules definitions would then be reduced to
importing.

__Jason


Follow-Ups: References: