On the other hands, there are problems with compilers enforcing things
like that, too. For example, if the compiler enforces initial caps for
classes and camel case, that can cause problems in some environments.
Where I work, for example, we've got a mixed environment. Some things
will be handled by Java code, Perl code, Javascript code, PHP code, and
C code as they pass through the system.
If there is a variable that holds an order number, for example, it is
annoying if it is order_number in some of that code, and orderNumber in
some of that code, and dwOrderNumber in some of that code. (E.g.,
someone searching through the whole system for things that use the order
number will be happier if they can do one simple grep to find all the
code they need to look at).
So, we use order_number everywhere. Even in the Java code.
Compilers that enforce stylistic standards are fine if everything in the
system is going to use those compilers, but sometimes it is more
important to fit in with a larger computing environment.