Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift 2.0
Search
greg3z
June 17, 2015
Programming
110
0
Share
Swift 2.0
My post WWDC talk about Swift 2.0 @ Swift Paris - 17/06/2015
greg3z
June 17, 2015
More Decks by greg3z
See All by greg3z
How to turn an onion into a snake?
greg3z
0
1.6k
The Inheritance Curse
greg3z
0
1.2k
MVC-RS
greg3z
0
230
Swift Open Source
greg3z
0
79
Swift Sequences & Collections
greg3z
0
52
Other Decks in Programming
See All in Programming
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.1k
dRuby over BLE
makicamel
1
270
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
1.5k
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
130
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
5
1k
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
770
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
230
ふつうのFeature Flag実践入門
irof
7
3.4k
Swiftのレキシカルスコープ管理
kntkymt
0
210
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
630
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
330
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
200
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
エンジニアに許された特別な時間の終わり
watany
107
240k
Practical Orchestrator
shlominoach
191
11k
Speed Design
sergeychernyshev
33
1.8k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
260
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
From π to Pie charts
rasagy
0
200
4 Signs Your Business is Dying
shpigford
187
22k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Transcript
Swift 2.0 @greg3z
Menu • Objective C enhancements • Availability • Error handling
• Swift 2.0 Migration • •
Objective C enhancements • Generics • Nullability
Availability
Availability
Error handling
do
do
do
do X
do
Error handling
Error handling
Error handling
Error handling
Error handling
Error handling
Error handling
Objective C enhancements AnyObject -> T T! -> T or
T? Swift 2.0 Migration
StdLib: global functions 101 -> 77 sorted(elements, f) -> elements.sort(f)
count(string) -> string.count Swift 2.0 Migration
Option sets .FlexibleWidth | .FlexibleHeight [.FlexibleWidth, .FlexibleHeight] none -> []
Swift 2.0 Migration
Error handling Methods with NSError** -> do / try /
catch Swift 2.0 Migration
var -> let warning unused variable println -> print count(string)
-> string.characters.count Swift 2.0 Migration
None
Protocol Extensions
Protocol-Oriented Programming
POP
None
None
None
Swift Open Source
iOS dev -> fullstack dev
guard defer if case .A = a where everywhere Generated
Interface Misc
Questions? :) @greg3z