Re: prefixes and namespaces?
- Posted by Matt Lewis <matthewwalkerlewis at gma?l.co?> Apr 25, 2008
- 665 views
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