首页 | 主题 | 图库 | 问答 | 文摘 | 原创 | 百科

历史 | 地理 | 人物 | 艺术 | 体育 | 科学 | 音乐 | 电影 | 信息技术 | 世界遗产

 开放、中立,源自维基百科

Personal tools

CamelCase

From Wikipedia, the free encyclopedia

Jump to: navigation, search

CamelCase (also spelled camel case) or medial capitals is the practice of writing compound words or phrases in which the words are joined without spaces and are capitalized within the compound — as in "BackColor" or "iMac". The name comes from the uppercase "bumps" in the middle of the compound word, suggestive of the humps of a camel.

CamelCase is a standard identifier naming convention for several programming languages, and has become fashionable in marketing for names of products and companies. However, CamelCase is rarely used in formal written English, and most style guides recommend against its use.

Contents

Variations and synonyms

For clarity, this article will call the two varieties UpperCamelCase and lowerCamelCase. Some people and organizations use the term camelCase only for lowerCamelCase, and refer to UpperCamelCase as PascalCase.[1][2] In some contexts, however, the term CamelCase does not discriminate between the two. Other synonyms include:

AD Links