Case convention- Why the variation between languages?

Posted by Jason on Programmers See other posts from Programmers or by Jason
Published on 2011-06-24T22:44:36Z Indexed on 2011/06/25 0:32 UTC
Read the original article Hit count: 237

Filed under:
|
|

Coming from a Java background, I'm very used to camelCase. When writing C, using the underscore wasn't a big adjustment, since it was only used sparingly when writing simple Unix apps. In the meantime, I stuck with camelCase as my style, as did most of the class.

However, now that I'm teaching myself C# in preparation for my upcoming Usability Design class in the fall, the PascalCase convention of the language is really tripping me up and I'm having to rely on intellisense a great deal in order to make sure the correct API method is being used. To be honest, switching to the PascalCase layout hasn't quite sunk in the muscle memory just yet, and that is frustrating from my point of view.

Since C# and Java are considered to be brother languages, as both are descended from C++, why the variation in the language conventions? Was it a personal decision by the creators based on their comfort level, or was it just to play mindgames with new introductees to the language?

© Programmers or respective owner

Related posts about java

Related posts about c#