Re: prefixes and namespaces?

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

Jeremy Cowgar wrote:
> 
> Should we omit the map_ and datetime_ and do things like:
> 
> }}}
<eucode>
> include datetime.e as dt
> 
> dt:now()
> dt:add_days(30)
> dt:from_unix(1029382)
> 
> map:put(m, "name", "John")
> map:get(m, "name")
> </eucode>
{{{


I think so.

> One concern I have is both map and datetime have the "new" function. Also,
> datetime
> has datetime_compare, which would become compare(). That does not matter if
> you do include with a namespace but...

Can someone please justify datetime_compare()?  It just seems to add 
overhead to what could be accomplished with the built-in compare().  We
definitely need to be careful when overriding a built-in.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu