Case sensitivity

  • Thread starter Thread starter bigbob
  • Start date Start date
B

bigbob

Okay, back in the day, when dinosaurs and TTYs ruled the world, it made
sense to be as concise as possible. Fast forward to the 21st century, and we
get a brand new language with case sensitive variables. Hey, you can have x
and X refer to different things. Isn't that wonderful! Right... What kind of
a moron wants to remember x versus X? The VB tribe usually types variable
names in all lower case so that the IDE will convert them. If it doesn't,
you made a typo. That's a useful feature. Why doesn't C# have an environment
option to disable case sensitivity? Be honest now, what purpose does it
serve?
 
Be honest now, what purpose does it serve?

1) Historical reasons. Languages in the C family are case-sensitive. VB
isn't, Eiffel isn't. C, C++, Java, and C# are. If you claim a language is
similar to C++ and Java, lexical conventions should probably be similar.

2) Entertainment value. This thread will generate a great deal of hot air,
and several people will probably make complete asses of themselves.
 
Jasper Kent said:
Same reason we have QWERTY keyboards and irregular verbs. It is because it
was.
Damn, this debate has gone on over and over again, and this is the first
response I've seen that didn't pitch in any religious fervor, lol.
I like it.
Hopefully no pundits from either side will turn this into a messy argument
either, -_-.
 
I had a co-worker that was a total MS Basher and always ran his mouth about
Perl, Linux and Java. Problem was, he couldn't get anything done in any of
them. So he informed us that when MS created C#, they assumed that the
average C# user was more sophisticated then 'lame' VB and VB.NET
programmers. He said that 'real programmers' <which is usually a phrase you
hear right before someone makes a complete j4ck4ss out of themselves> want
that level of case sensitivity.

It was one of the more ridiculous things I've heard, but typical of the
'which is better' arguments you see around these issues.

Cheers,

Bill
 
I think it also help in improving the code readability.
Let say some developer write a function MyTestFunction( ) now all other
developers are forced to use it as MyTestFunction( ). No one can use it
like mytestfunction( ) or MYTESTFUNCTION( ) :-)
 
Back
Top