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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
greg3z
June 17, 2015
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
55
Other Decks in Programming
See All in Programming
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
500
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
110
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
870
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
180
初めてのKubernetes 本番運用でハマった話
oku053
0
130
はてなアカウント基盤 State of the Union
cockscomb
1
1.3k
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
140
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
200
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
190
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
520
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
270
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
17
9.1k
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
320
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
350
Side Projects
sachag
455
43k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Utilizing Notion as your number one productivity tool
mfonobong
4
430
Ruling the World: When Life Gets Gamed
codingconduct
0
280
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Deep Space Network (abreviated)
tonyrice
0
230
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
180
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
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