Search code examples
c#javacoding-stylecapitalization

Why is capitalising class names in Java (and others) only a suggestion and not a rule?


I am wondering why Java, with its many safety features and constraints, allows developers to start a class name with a lowercase letter even though it would be an extremely stupid idea to do so.

Or have I overlooked a case where this could be useful? Or is it simply a case of not bossing the programmer around?


Solution

  • It is because it was thought that a programming language should not force conventions in the previous years. But now the scene is a little changing and there are favourable atmosphere for "Conventions over configuration" approach like in Ruby on rails.

    So in the future, we may see more of the convention based programming languages/frameworks which will arise out of the programming patterns and best practices over the times.