Basic coding style

Walter Bright newshound2 at digitalmars.com
Mon Nov 22 21:03:27 PST 2010


Matthias Walter wrote:
> What about adding a compiler switch that one can turn on and that warns
> on obviously wrong names? Is this realistic? At least to check the usage
> of underscores and captial first letter. The CamelCase can probably not
> be verified, but hopefully a lot of programmers will use it, if the
> compiler encourages them to not use underscores... Just an idea, you can
> flame on, if you like.


If you want, it would be easy to write a simple program that read the .json 
output of the compiler, and then enforce any naming convention you need.


More information about the Digitalmars-d mailing list