Swift Swiftly
A quick introduction to the Swift language
Oliver Jones
Technical Director
Swift Swiftly A quick introduction to the Swift language Oliver - - PowerPoint PPT Presentation
Swift Swiftly A quick introduction to the Swift language Oliver Jones Technical Director Disclaimer Learning Swift iBooks The Swift Programming Language Using Swift with Cocoa and Objective-C Apple Developer Documentation
A quick introduction to the Swift language
Oliver Jones
Technical Director
Disclaimer
Learning Swift
What is Swift?
WWDC 2014 in June
Architect
What is Swift?
What is Swift?
Objective-C without C
Rusty Objective-C#++
What is Swift?
Swift IS NOT Objective-C
(with new syntax)
What is Swift?
Swift Code
What is Swift?
Notable Features
Notable Features
Notable Features
Notable Features
Notable Features
Notable Features
Notable Features
Notable Features
Optional Types
value.
references.
What are ? Optional Types
Example
I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object
all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.
“ ”
Why Optional Types?
Pattern Matching
What is ?
with super powers.
Pattern Matching
Example
Example
Example
Example
Notable Omissions
(But you should learn Objective-C too.)
Should you learn Swift?
Should you learn Swift?
(But you should be developing something.)
Should you deliver in Swift?
Should you deliver in Swift?
Thank You.
@orj