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
93
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.4k
The Inheritance Curse
greg3z
0
1.1k
MVC-RS
greg3z
0
190
Swift Open Source
greg3z
0
67
Swift Sequences & Collections
greg3z
0
43
Other Decks in Programming
See All in Programming
Ruby製社内ツールのGo移行
bgpat
2
330
CQRS/ES avec Symfony, c’est (trop) bien !
jeremyfreeagent
1
630
Folding Cheat Sheet #2
philipschwarz
PRO
0
110
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
300
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.6k
両面どころかインフラもTSでできるよ ~ 全方位TypeScriptによるプロダクト開発 ~
myfinder
9
3.2k
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
3
630
オブジェクト指向のリ・オリエンテーション~歴史を振り返り、AI時代に向きなおる~
hanyudaeiiti
9
5.6k
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
420
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
110
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
450
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.2k
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
154
14k
What's in a price? How to price your products and services
michaelherold
237
11k
No one is an island. Learnings from fostering a developers community.
thoeni
14
2.1k
Atom: Resistance is Futile
akmur
258
25k
StorybookのUI Testing Handbookを読んだ
zakiyama
11
4.6k
Visualization
eitanlees
135
14k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Code Reviewing Like a Champion
maltzj
513
39k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
76
41k
The Power of CSS Pseudo Elements
geoffreycrofte
59
5k
The Illustrated Children's Guide to Kubernetes
chrisshort
29
46k
Designing for Performance
lara
602
67k
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