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
I ♥ Swift
Search
Pat Hawks
February 19, 2016
Technology
120
0
Share
I ♥ Swift
A talk about what makes Swift so cool
Pat Hawks
February 19, 2016
More Decks by Pat Hawks
See All by Pat Hawks
Choosing an Open Source Software License
pathawks
0
66
A Brief Introduction to Magic
pathawks
0
62
callReturnExploration.s
pathawks
0
59
callingFunctions.S
pathawks
2
130
Grokking Signed Overflows
pathawks
0
62
Other Decks in Technology
See All in Technology
Practical TypeProf: Lessons from Analyzing Optcarrot
mame
0
730
今年注目する!データ分析プラットフォームでのAIの活用
nayuts
0
150
小説執筆のハーネスエンジニアリング
yoshitetsu
0
740
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
380
Expiration of Secure Boot Certificates for vSphere Virtual Machines
mirie_sd
0
100
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
730
音声言語モデル手法に関する発表の紹介
kzinmr
0
120
レビューしきれない?それは「全て人力でのレビュー」だからではないでしょうか
amixedcolor
0
340
UIライブラリに依存しすぎないReact Native設計を目指して
grandbig
0
110
目的ファーストのハーネス設計 ~ハーネスの変更容易性を高めるための優先順位~
gotalab555
8
2.2k
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
320
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
4
1.3k
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
530
Technical Leadership for Architectural Decision Making
baasie
3
330
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
270
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
The Curse of the Amulet
leimatthew05
1
11k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
250
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Balancing Empowerment & Direction
lara
6
1.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
Transcript
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