Variations and synonyms
The practice has various names, including: * camelBack (or camel-back) notation or CamelCaps * camel case or CamelCase * CapitalizedWords or CapWords for upper camel case in PythonStyle Guide for Python CodeTraditional use in natural language
In word combinations
The use of medial capitals as a convention in the regular spelling of everyday texts is rare, but is used in some languages as a solution to particular problems which arise when two words or segments are combined. In Italian, pronouns can be suffixed to verbs, and because the honorific form of second-person pronouns is capitalized, this can produce a sentence like ''non ho trovato il tempo di risponderLe'' ("I have not found time to answer you" – where ''Le'' means "to you"). InIn transliterations
In the scholarly transliteration of languages written in other scripts, medial capitals are used in similar situations. For example, in transliteratedIn abbreviations
Medial capitals are traditionally used in abbreviations to reflect the capitalization that the words would have when written out in full, for example in the academic titlesHistory of modern technical use
Chemical formulae
The first systematic and widespread use of medial capitals for technical purposes was the notation for chemical formulae invented by the Swedish chemist Jacob Berzelius in 1813. To replace the multitude of naming and symbol conventions used by chemists until that time, he proposed to indicate each chemical element by a symbol of one or two letters, the first one being capitalized. The capitalization allowed formulae like "Early use in trademarks
Since the early 20th century, medial capitals have occasionally been used forComputer programming
In the 1970s and 1980s, medial capitals were adopted as a standard or alternativeNextCh
" and "WriteSymbol
".
Multiple-word descriptive identifiers with embedded spaces such as end of file
or char table
cannot be used in most programming languages because the spaces between the words would be parsed as endoffile
or chartable
is difficult to understand and possibly misleading; for example, chartable
is an English word (able to be charted), whereas charTable
means a table of chars
.
Some early programming languages, notably _
universally available. Some languages, notably C, promptly adopted underscores as word separators, and identifiers such as end_of_file
are still prevalent in C programs and libraries (as well as in later languages influenced by C, such as Computer companies and products
Whatever its origins in the computing field, the convention was used in the names of computer companies and their commercial brands, since the late 1970s — a trend that continues to this day: * (1977)Spread to mainstream usage
In the 1980s and 1990s, after the advent of theCurrent usage in computing
Programming and coding
The use of medial caps for compound identifiers is recommended by the coding style guidelines of many organizations or software projects. For some languages (such asWiki link markup
Camel case is used in some wiki markup languages for terms that should be automatically linked to otherOther uses
TheReadability studies
Camel case has been criticised as negatively impacting readability due to the removal of spaces and uppercasing of every word. A 2009 study comparingSee also
References
External links