Re: . or : for namespace?

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

Jeremy Cowgar wrote:
> 
> yuku wrote:
> > 
> > My 1e-2 cents:
> > 
> > I hate looking at ":" for the namespace specifier.
> > It looks unclean (not easily distinguisable from a letter), 
> > hard to type, and not common. "_" is much cleaner...
> > 
> > Any reason why didn't we use . instead of : ?
> 
> For the fun of it, I looked at parser.e and after adding 12 characters to the
> code, . now works in addition to :...
> 
> }}}
<eucode>
> include math.e as m
> printf(1, "%.5f\n", {m.round_prec(10.2039212, 100)})
> </eucode>
{{{

> 
> I am not committing this change, though, as it needs much discussion. I was
> just playing. If, however, . is adopted, we could support both and give a
> warning
> that : is deprecated.
> 
> Just thinking aloud.
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

I'm okay with this. I was thinking why not to change from ":" to "." and the
main one was compatibility. Then the thought of using both came to mind.

I wonder how it would affect any future OO extensions to the language, though. 

I need to look at the ooeu docs again to see how Matt handled it.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu