Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift 2.0
Search
greg3z
June 17, 2015
Programming
0
100
Swift 2.0
My post WWDC talk about Swift 2.0 @ Swift Paris - 17/06/2015
greg3z
June 17, 2015
Tweet
Share
More Decks by greg3z
See All by greg3z
How to turn an onion into a snake?
greg3z
0
1.5k
The Inheritance Curse
greg3z
0
1.1k
MVC-RS
greg3z
0
230
Swift Open Source
greg3z
0
77
Swift Sequences & Collections
greg3z
0
49
Other Decks in Programming
See All in Programming
エディターってAIで操作できるんだぜ
kis9a
0
720
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
440
Cell-Based Architecture
larchanjo
0
110
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
220
AIコーディングエージェント(NotebookLM)
kondai24
0
180
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2.3k
WebRTC と Rust と8K 60fps
tnoho
2
2k
配送計画の均等化機能を提供する取り組みについて(⽩⾦鉱業 Meetup Vol.21@六本⽊(数理最適化編))
izu_nori
0
150
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
130
WebRTC、 綺麗に見るか滑らかに見るか
sublimer
1
160
愛される翻訳の秘訣
kishikawakatsumi
1
320
Developing static sites with Ruby
okuramasafumi
0
270
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
We Have a Design System, Now What?
morganepeng
54
7.9k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.4k
A better future with KSS
kneath
240
18k
KATA
mclloyd
PRO
32
15k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Mobile First: as difficult as doing things right
swwweet
225
10k
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