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のポイントかいつまみ!
Search
jollyjoester
August 08, 2015
Education
720
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swiftのポイントかいつまみ!
個人的に大事だと思うSwiftのポイントかいつまみます。
jollyjoester
August 08, 2015
More Decks by jollyjoester
See All by jollyjoester
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
印西市創業実践プログラム2026 【AI活用講座】
jollyjoester
0
63
AI時代でも変わらない技術コミュニティの力 ~10年続く"ゆるい"つながりが生み出す価値~
jollyjoester
0
35
AIコードアシスタントとiOS開発
jollyjoester
1
390
市民のためのセキュリティ講座
jollyjoester
0
120
コミュニティMTG in WWDC24
jollyjoester
0
390
BengaluruでLTしてきた
jollyjoester
0
410
try! Swift Tokyo 2024
jollyjoester
0
420
エンジニアが直接会う場の価値について
jollyjoester
8
4.7k
Other Decks in Education
See All in Education
第2部-高校生とAI活用/high-school2026-2
okana2ki
0
150
NDIAS Automotive / IoT CTF 2026 Recap - Keyfob & OSINT
himitu23
0
330
輻射安全管理系統2.0暨輻防e++學園平台說明會
aecrp
0
2k
[2026前期火5] 論理学(京都大学文学部 前期 第8回)「正規化定理の証明」
yatabe
0
320
Gitがない時代 インターネットがない時代の 開発話
sapi_kawahara
0
390
Lectura 2 (PIT : Python Basico)
robintux
0
430
良書紹介08_ 頭のいい子がやっているすごいグラフの読み方
bunnchinn3
0
160
Lectura 1 (PIT : Python Basico)
robintux
0
1.1k
Claudeに作らせた線形代数講義資料(数回分)
take326
0
120
면접관 눈에 띄는 데이터 분석 포트폴리오 만드는 법 | 2026년 5월 세미나
datarian
0
1.1k
[2026前期火5] 論理学(京都大学文学部 前期 第5回)「 ならばの問題演習・proof net・かつの規則」
yatabe
0
420
解決策を教えても次期リーダーは育たない ─ 器の発達に伴走するために / Partnering with leaders in their vertical development
matsu0228
1
700
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
810
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Cult of Friendly URLs
andyhume
79
7k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
470
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Claude Code のすすめ
schroneko
67
230k
Transcript
Swift2.0͕ग़Δલʹ SwiftͷϙΠϯτ͔͍ͭ·Έʂ SwiftϏΪφʔζษڧձ ୈ̕ճ 2015/08/08 jollyjoester
• ࣣౡҒ೭ʢͳͳ͠·ͻͰΏ͖ʣ • Repro.Inc / ྑΤϯδχΞ • iPhone / Android
• Java -> Objective-C -> Swift • ੜ·Εਆಸɺݩઍ༿ɺ ࣗࢁޱ
https://repro.io/
Repro
ࣥචʹࢀՃ͠·ͨ͠ʂ • 2015/04/10ɹٕज़ධ͔ࣾΒൃച ೦ͳ͕ΒSwift1.1࣌ Ͱਖ਼ޡදͱαϯϓϧϓϩάϥϜSwift1.2ରԠ
Introduction • ݸਓతʹେࣄͩͱࢥ͏SwiftͷϙΠϯτ͔͍ͭ·Έ·͢ɻ
TɾOɾC • Constants and Variables • Struct and Class •
Optionals • Type Constraint • ͓·͚ : Tuples
Constants and Variables • let : immutableʢఆɺ࠶ೖෆՄʣ • var :
mutableʢมɺ࠶ೖՄʣ let : Կ͕خ͍͠ʁ
Constants and Variables let : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λগͳ͘͢Δ͜ͱ͕Ͱ͖Δʂ ʢແବʹՄมͳ෦͕͋Δͱෳࡶ͕͞૿ͯ͠ෆ۩߹ͷݩʣ ->جຊletͰએݴɻ࠶ೖͷඞཁੑ͕ग़͖ͯͨΒvarʹɻ
ҙ • letͰએݴͨ͠มʹΦϒδΣΫτ͕ೖ͞Ε͍ͯΔ߹ɺΦϒδΣ ΫτͷϓϩύςΟมߋͰ͖ͯ͠·͏Αɻ
Struct and Class • struct : ͠ɺclass : ࢀর͠ •
structܧঝෆՄ struct : Կ͕خ͍͠ʁ
Struct and Class struct : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λগͳ͘͢Δ͜ͱ͕Ͱ͖Δʂ ʢແବʹՄมͳ෦͕͋Δͱෳࡶ͕͞૿ͯ͠ෆ۩߹ͷݩʣ ->جຊstructͰɻঢ়ଶΛ࣋ͨ͟ΔΛಘͳ͔ͬͨΓܧঝ͕ඞཁͳ߹
classͰɻʢܧঝprotocolΛ͑༻Մೳͳ߹͋ΔΑʣ ҙ • ͠ͳͷͰͰ͔͍σʔλͷίϐʔཁҙ͔ʢ࠷దԽ͞ΕͯΔͱ ฉ͘ʣ
Optionals • There is a value, and it equals x
or • There isn’t value at all Optionals : Կ͕خ͍͠ʁ
Optionals Optionals : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λ(ry ->جຊnot OptionalͰɻOptionalͰͳ͚Εͬͯ͜͜nil ೖΔ͔ɺɺɺΈ͍ͨͳ͍ٙෆཁ ҙ
• Optionalͷཚ༻͢Δͱ
Type Constraint ܕ੍͕ڧ͍->҉ͷܕมݪଇͰ͖ͳ͍ʂ Type Constraint: خ͍͠ͱ͜Ζ • ແବʹՄม(ry
͓·͚ɿTuples ෳͷΛͻͱ·ͱΊʹͰ͖Δ ArrayDictionaryͱͷҧ͍ • ҟͳΔܕΛೖΕΒΕΔ • ϧʔϓॲཧ͕Ͱ͖ͳ͍ • ͷՃআ͕Ͱ͖ͳ͍
͓·͚ɿTuples ͳΜͰTupleʁ • ࣮Swiftͷશ෦Tuple • SwiftͷؔҾฦΓෳऔΕΔ->࣮྆ํ Tupleͳ͚ͩ
Have a nice Dev!