1:
Swift is, in large part, a reimagining of the Objective-C language using modern concepts and syntax. During its introduction, it was described simply as "Objective-C without the C".
2:
Swift does not create pointers and other unsafe accessors by default, contrary to Objective-C which makes widespread use of pointers to refer to objects, as well as their traditional use in embedded C-language code, although pointers can be created explicitly.
3:
Additionally, Objective-C's use of a Smalltalk-like syntax for making method calls has been replaced with a dot-notation style and namespace system more in common with other modern languages derived from C, like Java or C#.
4:
Swift introduces true named parameters and retains key Objective-C concepts, including protocols, closures and categories, often replacing former syntax with cleaner versions and allowing these concepts to be applied to other language structures, like enums.
New Ultimate Concepts
- Types, variables and optionals
- Libraries, runtime and development
- Debugging and other elements
- Memory management
Aucun commentaire:
Enregistrer un commentaire