> While working on the proposed new CS website (see my other message), I 
> dipped into CS itself again. I thereby realized that some classes are in 
> sub-namespaces of "CS", while a whole lot of others are not namespaced 
> at all, but are prefixed with "cs". I find this to be very confusing, 
> especially as a newcomer to the engine.
> 
> I guess this situation has historical reasons,

Yes. Probably the initial situation was that namespaces were not supported by 
all compilers or something, or perhaps just not be used widely at all, but the 
substitute for namespaces would be “unique” prefixes.

> but it feels very 
> inconsistent and I feel it should somehow be fixed, either by putting 
> everything in namespaces (into "CS", at least) and removing "cs" 
> prefixes, or by removing namespace use completely. I know that either 
> solution would break code currently using CS 1.9, but there is not very 
> much of that out there yet, and fixing it is a matter of simple finding 
> and replacing.

Well, for one CS itself uses it's own classes quite heavily :P
And a simple replacement of “cs...” with “CS::...” will probably break things 
in unexpected ways.

However, it's possible to have both prefixed and namespaced versions – e.g. you 
may notice some there are some namespaced classes, but also typedefs to 
prefixed versions. Doing that would ensure source code compatibility.
(The same would also work the other way round, if namespaces would be dropped 
and prefixes used again; but IMO namespaces are preferable.)

-f.r.

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: 
mailto:[email protected]?subject=unsubscribe

Reply via email to