
Peter Dimov wrote:
How does your compiler help you spot duplicate tags?
compiler (or actually language) provides tools to organize names in open (namespaces) or closed (nested types) hierarchies. These tools so far worked rather well, allowing users to define unique names (where sane design and source code organization are in place). Of course, if you do not want to use these tools, you do not have to. For incomplete types it's OK to redeclare tag whenever you want to use it, and it's almost no different that using literals (although slightly annoying and one has to be careful of scope). However, once you want to organize names, tags have many advantages over strings. I tried to explain these advantages in previous messages. I believe that users will want to organize tags in all but most trivial projects, as exceptions handling begs for such organization due to its distributed nature. B.