answersLogoWhite

0


Best Answer

The simple argument for case-sensitivity is that character 'A' (#65) and character 'a' (#97) are not the same character. To us humans they are clearly the same letter, but computers are less forgiving. Back in the good old days when RAM and CPU time were expensive, it simply wasn't worth the effort or expense to have the computer treat them as being the same. In those days, the onus was largely upon the programmer to ensure they identified variables correctly. Programmers were far more concerned with speed of compilation and, having been brought up within the case-sensitive world of Unix, they were intelligent enough to know that MAX and max are not the same identifier as far as the computer was concerned.

As the cost of computing fell and more and more people wanted to program them, the unforgiving nature of case-sensitive programming became a greater concern, thus languages such as BASIC were developed to address the problem and make life easier for newcomers. The same can be said of DOS, from which MS-DOS evolved. But while these languages and operating systems are more forgiving, they lack the flexibility and speed of a case-sensitive environment.

In C, for instance, the inherent case-sensitivity makes it possible to use programming conventions such as all uppercase for macro identifiers and lowercase for C identifiers. Macros are not actually part of the C language -- they are used by the preprocessor to prepare the C source code for compilation -- but it is helpful to be able to differentiate a macro from an actual identifier in your code, even when they have the exact same name.

MAX and max are not the same, but then neither is Max or mAx. Normally you wouldn't use mixed-case like this in C, as it makes your code hard to read, but the language is flexible enough to permit it should you wish to do so. And that is the main advantage: flexibility. The main disadvantage is the lack of forgiveness. But if you want forgiveness, you wouldn't be programming in C to begin with, you'd use something far more abstract instead, like Visual Basic.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the arguments for and against making identifiers case sensitive in programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

2 types of identifiers in C programming language?

1. identifiers beginning with a letter 2. identifiers beginning with an underscore


Is the identifiers 'name' and 'NAME' different in c?

Yes they is different, C language are case-sensitive.


Is “C language” case sensitive programminIs “C language” case sensitive programming language If yes why and if no whyg language If yes why and if no why?

C is case sensitive, which means that, for example, $var and $VAR are not the same variable.


What are words that make up a high-level programming language called?

Some languages have specific terms, however keyword or reserved word is the general terminology we use when referring to a programming language's primary vocabulary. That is; words that cannot be used as identifiers. However, some languages also have contextual keywords. For instance, C++ has final and override contextual keywords. These can be used as both identifiers and keywords, depending on the context. The only reason for this is that people were using these words as identifiers before they were introduced to the language (in C++11) and making them actual keywords would have broken a lot of older code.


What are the words that make up a high-level programming language called?

Some languages have specific terms, however keyword or reserved word is the general terminology we use when referring to a programming language's primary vocabulary. That is; words that cannot be used as identifiers. However, some languages also have contextual keywords. For instance, C++ has final and override contextual keywords. These can be used as both identifiers and keywords, depending on the context. The only reason for this is that people were using these words as identifiers before they were introduced to the language (in C++11) and making them actual keywords would have broken a lot of older code.


What mark is used to separate arguments in a function?

That depends on the syntax rules of the language in which you are programming. However, the "," is the most usual separator).


Whether HTML is case sensitive or C?

HTML is not case-sensitive, while C is a case-sensitive language. In HTML, the tags, attributes, and values can be written in uppercase or lowercase letters, and it will still be interpreted the same way by the web browser. For example, the "p" tag can be written as or , and both will be interpreted as paragraph tags. On the other hand, C is a case-sensitive language, which means that the identifiers such as variables, function names, and keywords must be written in the correct case. For example, "main" is different from "Main" and "MAIN" in C. It's important to keep in mind the case sensitivity rules while coding in these languages to avoid syntax errors or unexpected behavior.


What are the words that make up a high level programming language called?

Some languages have specific terms, however keyword or reserved word is the general terminology we use when referring to a programming language's primary vocabulary. That is; words that cannot be used as identifiers. However, some languages also have contextual keywords. For instance, C++ has final and override contextual keywords. These can be used as both identifiers and keywords, depending on the context. The only reason for this is that people were using these words as identifiers before they were introduced to the language (in C++11) and making them actual keywords would have broken a lot of older code.


What is purpose of pascal?

The Pascal language is used just like any other programming language. In the 70's and 80's, Pascal and Basic were the most common languages taught for beginning programming classes. Pascal is the foundation of the popular Delphi programming language as well as part of the Oxygene language for .NET. Pascal language is easier to read and is not case sensitive, which can add to difficulty in learning programming. It's also easier to debug.


Is XML a programming language?

It is programming languages that are referred to in terms of "high level" and "low level".Extensible Markup Language(XML) is a markup language not a programming language, it is a data formatting specification that makes the presentation of data independent of programs (so that data can be passed between programs).For this reason the answer to your question is "neither".


Is the B programming language a high or low level programming language?

The B programming language is a high-levelprogramming language.


What does case sensitive imply in a programming language?

"Case sensitive" means that, for example, myvariable, MyVariable, and myvAriAble are three separate things. In other words, upper case or lower case matters.