Why a_variable_name and A_VARIBLE_NAME are not the same when defining a variable name?? In question section | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why a_variable_name and A_VARIBLE_NAME are not the same when defining a variable name?? In question section

Am not talking talking about case sensitivity!

13th Jul 2021, 11:33 AM
Ibrahim Ahmad
Ibrahim Ahmad - avatar
2 Answers
+ 4
Some programming languages are case-sensitive for their identifiers (C, C++, Java, C#, Ruby, Python and Swift). Others are case-insensitive (i.e., not case-sensitive), such as ABAP, Ada, most BASICs (an exception being BBC BASIC), Fortran, SQL (for the syntax, and for some vendor implementations, e.g. SQL Server, the data itself) and Pascal. There are also languages, such as Haskell, Prolog, and Go, in which the capitalisation of an identifier encodes information about its semantics. Some other programming languages have varying case sensitivity; in PHP, for example, variable names are case-sensitive but function names are not case-sensitive. This means that if you define a function in lowercase, you can call it in uppercase, but if you define a variable in lowercase, you cannot refer to it in uppercase. Nim is case-insensitive and ignores underscores, as long as the first characters match.
13th Jul 2021, 12:11 PM
Martin Cervantes
Martin Cervantes - avatar
+ 1
Thank you martin❤
13th Jul 2021, 12:16 PM
Ibrahim Ahmad
Ibrahim Ahmad - avatar