Case sensitivity in programming languages.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I just read a thread about this and I thought I would just add my
2cents why this situation exists.

In the stone age days, keyboards did not have lowercase. So everything
was typed in uppercase. No one bitched about it. Now with upper and
lower case keyboards people bitch and curse. Including myself. But I
live with it.

The main reason why we have case sensitivity in programming languages
goes back to the start of cave man days of language development:
Compilation and interpretation performance. A compiler does not have to
convert symbols to upper case or lower case or whatever. Also, only one
way to have a symbol table in memory. This reasoning goes back to the
days of slow CPU's and low memory. Today, one could argue otherwise.

Same thing for many of the OSes of the world.

So, they didn't force case sensitivity on us out of concern of the
English language (Only Smalltalk cares about this in a serious manner).
After all look at the crappy function names in maney languages
including C and PHP.

There are many things that we are stuck with for historical reasons
that dont make sense today. But these days with autocompletion it
shouldn't be much of an issue. Provided you are not using NoTePaD.
Although I dislike VB for other reasons it does it it best. If you
declare a variable, it will go through and fix it everywhere the same
way. No questions asked.

Ok, sorry about my rant.

Re: Case sensitivity in programming languages.

ImOk wrote:
Quoted text here. Click to load it

This has a simple solution:
Keep the caps lock always on, or never touch the shift key.  Enjoy and
have fun!

Re: Case sensitivity in programming languages.

Quoted text here. Click to load it

I disagree.  Look at Java.  There is a definite set of conventions there  
that readily identifies what kind of thing a name represents.  For example,

theName               is the name of a variable
TheName              is the name of a class
THENAME          is the name of a constant

I think that (a) the case sensitivity is useful and (b) it makes the code  
easier to read (when doen properly).


Re: Case sensitivity in programming languages.

Shelly wrote:
Quoted text here. Click to load it

That's necessary, of course, only because a speci