Migrating to Shared
rainerd at eldwood.com
Thu May 14 19:08:42 PDT 2009
Leandro Lucarella wrote:
> I prefer normal keywords for standard things (keywords or symbols starting
> with __ are historically reserved for compiler specific features or even
> private stuff in Python). For __gshared I agree that it's something ugly
> and it's fine if it looks ugly.
> But __traits?! Come on! __traits is beutiful, it deserves a beutiful
> keyword ;)
I like the idea of using __ for temporary, transitional, and
experimental keywords. Using __ has several advantages here:
- It's unlikely to collide with existing identifiers.
- You can create as many of them as you want without worrying about
- It's ugly as a reminder that the feature is temporary, transitional,
- It's easy to search for and easy to globally replace with a real
Eventually all features using __ keywords should be removed, renamed, or
modified in such as way that they do not require a keyword at all.
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d