Re: Changes in the ESL papers

new topic     » goto parent     » topic index » view thread      » older message » newer message

D. Newhall wrote:
> 
> Jason Gade wrote:
> > 
> big snip
> 
> > > - Should we have one file that contains (almost) all global types
> > >   (I vote for this), or should the global types be included in the
> > >   respective modules?
> > Both.
> But if we have the same global types in two files and you use both in a file
> you'd
> have namespace problems.

With Euphoria's behavior of including a file by name only once, this shouldn't
be a problem.  Separate the types by function into their own files and have
types.e include all of those files.  Respective modules can include the type
file(s) they need. This is what I meant.

> 
> 'nother snip
> 
> > Suggestions:
> > in math.e I think that add_all() should be called sum().  I don't know 
> > if multiply_all() should be called product(). It should be consistent 
> > either way though.
> It should definitely be consistent. With sum() and product() I was worried
> that the
> names weren't descriptive enough (the sum and product of what?). I'm fine with
> either
> name though or even something like sum_elements()?
> 


=====================================
Too many freaks, not enough circuses.

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu