Li Hongqiang iOS Development oc[017]c language identifiers

Source: Internet
Author: User

/**

* Identifiers 7 months old

the biggest difference between low-level and high-level languages :

the low-level language uses machine instructions.

high-level language is writing code that some people can read - assembly language

Identifiers are names .

naming rules :

1) can only have letters , numbers , underscores , and Dollar symbol ($) composition

( compiler-supported character sets )

2) cannot start with a number

3) cannot be duplicate with keyword

4) strictly case-sensitive

in development there is a chance to give a function a name, and it is generally necessary to follow the function

to take a meaningful name .

For example, enter a number input a numbers as function names , There are two ways to write

Input_a_number Int-a_number

Inputanumber

Pascal naming rules : capitalize all words in the first letter (inputanmuber)

Hump naming rules : First Letter lowercase, the remaining first letter capitalized

Playful language :

Peer to

naming conventions for identifiers

known for its hump companions ,

Do not use indentation difficult to view

Type 31 Long

constant capitalization is a big joy

*

*/

Li Hongqiang iOS Development oc[017]c language identifiers

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.