|
![](/i/fill.gif) |
Thorsten Froehlich wrote:
> Of course, namespaces are not an answer to naming convention problems. You
> can have the same namespace name in two files and run into the exact same
> problem you created namespaces for in the first place.
Which is why I prefer the way namespaces are done in XML instead of C++.
If you have a domain you have your own namespace. Just that simple. Any
idea if it can be done better than that?
I know who I am. I know what I will develop. So what prefix should I
use? This isn't in the manual.
> The documentation advises users to not use all lower-case identifiers for
> user defined declares and macros as lower-case identifiers are reserved for
> use by POV-Ray. This leaves plenty of names for users. Prefixing has
> almost the same effect as using namespaces, and looking at APIs of modern
> operating systems, they do really well without need for namespaces despite
> using tens of thousands of identifiers. Of course named namespaces offer a
> very valuable extension to any language, including POV-Ray SDL, not having
> them is only a minor annoyance, not a huge problem.
Prefixes are fine, at least partially. They can add a lot of overhead.
Namespaces would be better. But you are certainly right: It's not a huge
problem. On the other hand: Why not doing things right as soon as possible?
Regards,
Bernd Fuhrmann
Post a reply to this message
|
![](/i/fill.gif) |