Re: . or : for namespace?

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

c.k.lester wrote:
> 
> Jeremy Cowgar wrote:
> > 
> > I don't think we ever came to a decision on to use : or .
> 
> I like the dot for everything. It's a single-finger keystroke and looks nice.
> It can be used for structures, objects, etc... wherever there is a structure
> of hierarchical data (like in your examples).
> 
> Caveat: I've never even used the ':' for namespacing, and the only place I've
> seen it used extensively is Matt's code. Does Win32Lib use it? So, given this,
> I really don't care if the dot is adopted for namespacing or not. I'm voting
> my preference so that should I ever need it, I can use the friendly
> neighborhood
> dot.

Some include files in win32lib use the include...as form, notably series.e.
There is no internal reason to do that, just the name clash protection issue, so
I left it in as harmless.

As for whether to use . or :, I'll abstain. . is more commonplace, but : is easy
(perhaps 10% easier) to type, so it hardly matters.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu