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
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
210
Swift Open Source
greg3z
0
73
Swift Sequences & Collections
greg3z
0
48
Other Decks in Programming
See All in Programming
快速入門可觀測性
blueswen
0
500
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.4k
Beyond ORM
77web
11
1.6k
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
190
traP の部内 ISUCON とそれを支えるポータル / PISCON Portal
ikura_hamu
0
190
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
630
令和7年版 あなたが使ってよいフロントエンド機能とは
mugi_uno
11
5.3k
AWS Lambda functions with C# 用の Dev Container Template を作ってみた件
mappie_kochi
0
110
20241217 競争力強化とビジネス価値創出への挑戦:モノタロウのシステムモダナイズ、開発組織の進化と今後の展望
monotaro
PRO
0
290
ドメインイベント増えすぎ問題
h0r15h0
2
570
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
毎日13時間もかかるバッチ処理をたった3日で60%短縮するためにやったこと
sho_ssk_
1
550
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
RailsConf 2023
tenderlove
29
970
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Producing Creativity
orderedlist
PRO
343
39k
Six Lessons from altMBA
skipperchong
27
3.6k
Unsuck your backbone
ammeep
669
57k
A Tale of Four Properties
chriscoyier
157
23k
Code Reviewing Like a Champion
maltzj
521
39k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Done Done
chrislema
182
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
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