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
Generalized accessors
Search
Takuma Shimizu
March 27, 2019
Programming
0
83
Generalized accessors
Takuma Shimizu
March 27, 2019
Tweet
Share
More Decks by Takuma Shimizu
See All by Takuma Shimizu
Swift Attributes
hokuron
0
450
Peek in Calendar implementation of swift-foundation
hokuron
0
220
MVVM
hokuron
0
53
Summon Rust from Swift
hokuron
0
690
Opaque Result Type in Swift with Rust
hokuron
0
170
Ownership of Swift as seen from iteration and Rust
hokuron
1
700
Clean Architecture 3
hokuron
0
61
Clean Architecture 2
hokuron
0
79
Create MLで犬と猫の肉球を学習
hokuron
0
100
Other Decks in Programming
See All in Programming
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
600
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.8k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
1k
Vibe codingでおすすめの言語と開発手法
uyuki234
0
210
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
370
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.6k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
360
ゆくKotlin くるRust
exoego
1
220
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
410
Patterns of Patterns
denyspoltorak
0
1.3k
dchart: charts from deck markup
ajstarks
3
980
CSC307 Lecture 03
javiergs
PRO
1
480
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.8k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
420
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
440
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Discover your Explorer Soul
emna__ayadi
2
1.1k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
170
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Transcript
subscrit get set
get let nums = Array(0..<10) let x10 = nums[3] *
10 // `get` print(num) subscript(index: Int) -> Element { get { let element = // `index` return element // } set { ... } }
set var nums = Array(0..<10) let num = nums[3] nums[3]
= num * 10 // `set` print(num) subscript(index: Int) -> Element { get { ... } set(newValue) { // `newValue` // buffer = newValue } }
Swift 4.2 mutableAddressWithPinnedNativeOwner Swift 5 read , modify yield co-routine
read // CoreAudio.swift subscript(index: Index) -> Element { _read {
yield ((_audioBuffersPointer + index).pointee) } } modify // Array.swift subscript(index: Int) -> Element { _modify { let address = _buffer.subscriptBaseAddress + index yield &address.pointee } }
yield subscript(index: Int) -> inout Element {} inout Rust Lifetime
Rust Swift
yield
!