Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do people like case sensitivity? [closed]

Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all.
Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind you I am slowly warming up/getting used to it now that I'm using C# and F# alot more then I used to.

So why do you like it?

Cheers

like image 304
Nathan W Avatar asked Oct 03 '08 02:10

Nathan W


1 Answers

Consistency. Code is more difficult to read if "foo", "Foo", "fOO", and "fOo" are considered to be identical.

SOME PEOPLE WOULD WRITE EVERYTHING IN ALL CAPS, MAKING EVERYTHING LESS READABLE.

Case sensitivity makes it easy to use the "same name" in different ways, according to a capitalization convention, e.g.,

Foo foo = ...  // "Foo" is a type, "foo" is a variable with that type
like image 173
Kristopher Johnson Avatar answered Sep 30 '22 07:09

Kristopher Johnson