Capitization of enums values.
Posted: Wed Jul 07, 2010 8:11 pm
Currently enums values don't have to begin with a capital. Namespaces, Classes, members, Enums names, etc must have the correct casing to avoid collisions, and Enum values wont collide with anything because they are in the scope of their enums name, but I think for...
1/ ensuring that it doesn't look like a shared member access, and
2/ enforcing consistency in naming
...they should be required to start with a capital, and since they are capitalized for use from other languages anyway, and stringified that way, they might as well be inside Cobra.
Currently Xxxx.yyyy could be an enum Xxxx with value yyyy, or it could be a class Xxxx with a shared member yyyy.
1/ ensuring that it doesn't look like a shared member access, and
2/ enforcing consistency in naming
...they should be required to start with a capital, and since they are capitalized for use from other languages anyway, and stringified that way, they might as well be inside Cobra.
Currently Xxxx.yyyy could be an enum Xxxx with value yyyy, or it could be a class Xxxx with a shared member yyyy.