Different syntaxes from C/C ++ and Java in Swift (1), swiftjava
--- Restore content start ---
Swift, as the IOS recommendation language officially launched by Apple, has received more and more attention over the past few years. Actually, programmers know that different programming languages are similar, the key to mastering a new language is to understand its different features from other languages, we will introduce the differences between C/C ++ and Java, which are commonly used in Swift syntax. If there is something wrong, I hope you can correct it.
I. Overall
In section 1, we will leave the general features of the Swift language:
1) ";" or ";" can be used for the end of a Swift program, but ";" is not used in Apple's official documents. Therefore, we recommend that you do not use "; "For example:
Let maxNum = 100
You do not need to add ";".
2) the Swift language uses not ASCII codes But Unicode encoding formats. Therefore, the declaration of variables can be Chinese or emoticon, for example
Let Southeast University = 100
Let