Pascalcase & camelcase

Source: Internet
Author: User

Pascal spelling (also called the big camel spelling) is a variable naming method in computer programming. It is mainly used to uppercase the first letter of all words used by the descriptive variable, and then directly connects them. There is no connector between words. For example:

Age

Lastname

Winterofdiscontent

Similar to Pascal, camelcase is used. The difference between camelcase and camelcase is that the first letter of the first word is capitalized, while that of the first word is lowercase. The two are widely used in. NET Framework development.

Microsoft recommends that you use camelcase for simple variables and pascalcase for advanced naming rules.

In English, the combination of uppercase and lowercase words is called camelcase ). For example, the combination of backcolor, the first letter of color is capitalized.

This spelling is not allowed in formal English, but is widely used in programming languages and business activities. For example, Sony's best-selling game machine PlayStation, play and station both use uppercase letters.

The reason why it is called "Camel spelling" is that the case sensitivity makes compound words appear "Bulk" (BUMP), which looks like hump ).

There are two types of "Camel spelling. The first letter of the first word is lowercase, and the first letter of the next word is called "lowercamelcase". The first letter of the first word and the first letter of each word are capitalized, called uppercamelcase, or pascalcase ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.