Variables and constants for Swift's development base

Source: Internet
Author: User

Variables and constants for Swift's development base

Today I learned a bit about Swift language feeling iOS has taken its own step code to simplify a lot, and can use playground a real-time preview of the effect




Note: Constants can be used directly if you re-assign values to the above constants. No type Required

Variable directly with var can be assigned multiple times can be formulated type or can not make type feel very intelligent can be re-assigned multiple times

Finally, the problem of a variable overlay is just a plus and a number.


Playground Advantages and Disadvantages: You can preview the results in real time later can be bold to design and confirm the convenience of our future testing

Cons: Not yet mature commercial projects can not be used just for the convenience of developers to test


Variables and constants for Swift's development base

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.