Tag: swift
I accidentally learned that Apple launched the swift language this year and read the swift progamming language with curiosity and learning attitude. After reading the first chapter, the overall feeling is comprehensive.
The initial impression that swift gave me was quite attractive to me. The design is very simple and artistic. It should follow Apple's corporate culture. The preface draws on the pyth and JavaScript languages. I am not familiar with the former, but Swift has a lot to learn from the latter. When it comes to Javascript, you will naturally think of Java. These two independent languages have many commonalities, because Sun participated in the design of JavaScript. The swift language stands on the shoulders of giants, that is, it faces objects and processes. Object-oriented is the embodiment of modern computer languages. However, the pure object orientation occasionally gives people the feeling of killing chickens with a knife.
SWIFT is defined as a modern language that is "simple", "efficient", and "secure. The use of "scrutiny" makes a lot of code very concise. Because the swift development project is not used for the time being, it does not experience its efficiency. However, Apple intends to use it as the operating system development language in the future, which should be absolutely satisfied. Designed as a strong language, swift meets the security requirements in terms of genes.
Swift components are well designed, including class, structs, Enum, protocol, extensions, and generic. In fact, protocol is an interface-oriented design. Extensions is the idea of AOP, while generic is a generic type. If you know the development history of the Java language like me, you know that for Java, the next two items are only available in later versions.
The swift language design seems to fully consider the on-site project development. For example, the design of the enumeration type is flexible and can be dynamically changed. A slightly more flexible language makes code compilation more efficient, so that you can write more beautiful programs.
I wrote this article to give SWIFT a thumbs up ". In view of the limited understanding, I cannot tell out the shortcomings. It seems that an awesome person once said, "Every computer language is born to meet the requirements of a specific environment. It has both advantages and disadvantages. When you understand its shortcomings, you actually understand the language ". What the master said makes sense and sounds awesome.
After reading the collation, we will start the "language guide ". This book is quite good and can be fully understood by people who are not very proficient in English like me. It shows that the writing is still very standard. Every language should have a good book so that more people can understand, use it, and develop it. Right !!!