Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Case sensitivity
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==In programming languages== Some [[programming languages]] are case-sensitive for their identifiers ([[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]], [[C Sharp (programming language)|C#]], [[Verilog]],<ref name="k&r1e">{{cite book | last1 = Kernighan | first1 = Brian W. | author-link = Brian Kernighan | last2 = Ritchie | first2 = Dennis M. | author-link2 = Dennis Ritchie | chapter = Chapter 2: Types, Operators and Expressions | page = [https://archive.org/details/cprogramminglang00kern/page/33 33] | title = [[The C Programming Language]] | edition = 1st | publisher = Prentice Hall | date = February 1978 | location = Englewood Cliffs, NJ | isbn = 0-13-110163-3 }}</ref> [[Ruby (programming language)|Ruby]],<ref>{{cite book | last = Matsumoto | first = Yukihiro | author-link = Yukihiro Matsumoto | chapter = Chapter 2: Language Basics | page = [https://archive.org/details/rubyinnutshellde00mats/page/9 9] | title = Ruby in a nutshell | edition = 1st | publisher = O'Reilly Media | date = January 2002 | isbn = 0-596-00214-9 | chapter-url = https://archive.org/details/rubyinnutshellde00mats/page/9 }}</ref> [[Python (programming language)|Python]] and [[Swift (programming language)|Swift]]). Others are case-insensitive (i.e., not case-sensitive), such as [[ABAP]], [[Ada (programming language)|Ada]], most [[BASIC]]s (an exception being [[BBC BASIC]]), [[Common Lisp]], [[Fortran]], [[SQL]] (for the syntax, and for some vendor implementations, e.g. [[Microsoft SQL Server]], the data itself)<ref group='NB'>Although one can explicitly set a single database or column [[collation]] to be case-sensitive</ref> [[Pascal (programming language)|Pascal]], [[Rexx]] and [[Object REXX|ooRexx]]. There are also languages, such as [[Haskell (programming language)|Haskell]], [[Prolog]], and [[Go (programming language)|Go]], in which the capitalisation of an identifier encodes information about its [[Semantics (computer science)|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 a function is defined in lowercase, it can be called in uppercase, but if a variable is defined in lowercase, it cannot be referred to in uppercase. [[Nim (programming language)|Nim]] is case-insensitive and ignores underscores, as long as the first characters match.<ref>{{Cite web|url=https://nim-lang.github.io/Nim/manual.html#lexical-analysis-identifier-equality|title=Nim Manual: Identifier Equality|website=nim-lang.github.io|access-date=2019-04-27}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)