一种命名方式
http://en.wikipedia.org/wiki/CamelCase
camelCase (camel Case or camel-Case), also known as medial capitals,[1] is the practice of writing compound words or phrases in which the elements are joined without spaces, with each element's initial letter capitalized within the compound and the first letter either upper or lower case—as in "LaBelle", BackColor, "McDonald's", or "iPod". The name comes from the uppercase "bumps" in the middle of the compound word, suggestive of the humps of a camel. The practice is known by many other names.
An early systematic use of medial capitals is the standard notation for chemical formulae, such as NaCl, that has been widely used since the 19th century. In the 1970s, medial capitals became an alternative (and often standard) identifier naming convention for several programming languages. Since the 1980s, following the popularization of computer technology, it has become fashionable in marketing for names of products and companies. However, medial capitals are rarely used in formal written English and most style guides recommend against their use.
【另注】
在英语中,依靠单词的大小写拼写复合词的做法,叫做“骆驼拼写法”(CamelCase)。比如,backColor这个复合词,color的第一个字母采用大写。
这种拼写法在正规的英语中是不允许的,但是在编程语言和商业活动中却大量使用。比如,sony公司的畅销游戏机PlayStation,play和station两个词的词首字母都是大写的。
它之所以被叫做“骆驼拼写法”,是因为大小写的区分使得复合词呈现“块状”(bump),看上去就像骆驼的驼峰(hump)。
“骆驼拼写法”又分为两种。第一个词的首字母小写,后面每个词的首字母大写,叫做“小骆驼拼写法”(lowerCamelCase);第一个词的首字母,以及后面每个词的首字母都大写,叫做“大骆驼拼写法”(UpperCamelCase),又称“帕斯卡拼写法”(PascalCase)。