Introduction:
Swift is a new programming language developed by Apple. Swift is used to develop apps for iOS, macOS, watchOS, and tvOS.
Swift is almost similar to C and Objective-C. It contains variables, operators, Control statements, Functions and more... like other programming languages. We will cover everything in later sessions.
Swift introduces advanced types not found in Objective-C, such as tuples. Tuples enable you to create and pass around groupings of values. You can use a tuple to return multiple values from a function as a single compound value.
Swift also introduces new optional types, which handle the absence of a value (nil value). It work for any type, not just classes. Swift is a type-safe language. If part of your code expects a string, type safety prevents you from passing it an Int by mistake. Type safety prevents you passing a optional value to piece of code which excepts a non-optional value by mistake. By using this we can easily find and fix errors as early as possible in the development process.
![Swift Programming Language Tutorial (Swift 4) - [ 1.0 Introduction ] Swift Programming Language Tutorial (Swift 4) - [ 1.0 Introduction ]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiYpiyPTvqr3jqwr8tP3lshiBwg4YoRSIlXwa8GL9QHb2PpO-_PLOsVycrWuPPG5j-CyaybnRJv24z_5gL2yX28_i_kF7CapkGCCjTujnHsnLdL-Eg6SjGzKwrdDwo1Y5I1QeSvtCLnDEc/s1600/index.jpg)
No comments:
Post a Comment