Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
I ♥ Swift
Search
Pat Hawks
February 19, 2016
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
I ♥ Swift
A talk about what makes Swift so cool
Pat Hawks
February 19, 2016
Transcript
11 slides
I http://git.io/GrokSwift
print("Hello, world!")print print("Hello, world!")print
var myVariable = 42 myVariable = 50 let myConstant =
42
let implicitInteger = 70 let implicitDouble = 70.0 let explicitDouble:
Double = 70
myVariable = 42 myVariable = "42" # var myVariable =
42 myVariable = "42" //
final int[] individualScores = [75, 43, 103, 87, 12]; int
teamScore = 0; for (int score : individualScores) { if (score > 50) { teamScore += 3; } else { teamScore += 1; } } System.out.printf("%d\n", teamScore); let individualScores = [75, 43, 103, 87, 12] var teamScore = 0 for score in individualScores { if score > 50 { teamScore += 3 } else { teamScore += 1 } } print(teamScore)
int accumulator = 0; for (int i = 0; i
<= 4; ++i) { accumulator += i; } System.out.printf("%d\n", accumulator); var accumulator = 0 for i in 0...4 { accumulator += i } print(accumulator)
var accumulator = 0 for i in 0...4 { accumulator
+= i } print(accumulator) var accumulator = 0 for i in 0..<5 { accumulator += i } print(accumulator)
var accumulator = 0 for i in 0..<5 { accumulator
+= i } print(accumulator) accumulator = 0 for i in range(0, 5) { accumulator += i } print(accumulator)
•Expressive •Safe •Fast •Expressive •Safe •Fast
I by Pat Hawks is licensed under a Creative Commons
Attribution 4.0 International License Emoji provided free by Emoji One Some content from The Swift Programming Language by Apple Inc. I
More Decks by Pat Hawks
See All by Pat Hawks
Choosing an Open Source Software License
pathawks
0
86
A Brief Introduction to Magic
pathawks
0
72
callReturnExploration.s
pathawks
0
64
callingFunctions.S
pathawks
2
130
Grokking Signed Overflows
pathawks
0
74
Other Decks in Technology
See All in Technology
Steering と Hook (チームの決まりを守らせる) | 目指せ Kiro マスター 06
inariku
PRO
2
120
Quick Automate | 目指せ Quick マスター 12
inariku
PRO
1
110
81天的 AI Agent 軟體開發團隊治理實務分享
regionbbs
0
170
サボる子はいねぇがー!AgentCoreハーネスの脆弱性に学ぶ、エージェントの入力バリデーション
iwamot
PRO
5
340
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
2
330
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
5
2.8k
AWS Quick 入門 | 目指せ Quick マスター 01
inariku
PRO
2
340
Kiro Web 入門 (サインインから、頼み方、PR の受け取り、クラウドの決まりまで) | 目指せ Kiro マスター 04
inariku
PRO
2
120
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
430
AI時代に求められる優秀なTechLeadの振る舞い
pospome
11
16k
仕様と現実の間で落とし所を探るリモートMCPの認証・認可 — Sansanの認証基盤における課題と実践
sansantech
PRO
2
300
プロダクションコードにおける encoding/json から encoding/json/v2 へのスムーズな移行
sansantech
PRO
1
420
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
A designer walks into a library…
pauljervisheath
211
25k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
520
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
My Coaching Mixtape
mlcsv
0
390
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
240
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
920