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
Kotlinのデフォルト引数の話
Search
taiseiue
May 10, 2025
Technology
99
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kotlinのデフォルト引数の話
Kyoto.kt #3
で発表した資料です。
taiseiue
May 10, 2025
More Decks by taiseiue
See All by taiseiue
RustでもVJしたい!
taiseiue
0
65
“⾞が通れるほど⼤きな”セキュリティーホールを抑えながらログインしたい
taiseiue
0
410
.NETの上でお手製の言語を動かす技術
taiseiue
0
110
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
450
振り向き美人
taiseiue
0
36
Tadpole operators
taiseiue
0
81
(自作の)プログラミング言語ができるまで
taiseiue
1
650
Other Decks in Technology
See All in Technology
貴方はどのエンジニアリングを磨くのか
hatyibei
0
110
Making sense of Google’s agentic dev tools
glaforge
1
150
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
1
200
ボーイスカウトルールでメモリやスキルを改善しよう
azukiazusa1
1
270
Road to SRE NEXTの今までとこれから
hiroyaonoe
0
290
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.4k
金融の未来を考える / Thinking About the Future of Finance
ks91
PRO
0
180
AIレビューはどこまで任せられるのか?自動化と人が背負うレビューの境界
sansantech
PRO
2
470
Control Planeで育てるBtoB SaaSの認証基盤 - SRE NEXT 2026
pokohide
1
2.2k
SRE本の知られざる名シーン / The Hidden Gems of Google SRE Book
nari_ex
1
340
型は壁、Rustでもバグを直すな、表現できなくせよ
nwiizo
13
2k
Kaggleで成長するために意識したこと
prgckwb
1
170
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
460
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
340
Docker and Python
trallard
47
3.9k
Navigating Weather and Climate Data
rabernat
0
300
Git: the NoSQL Database
bkeepers
PRO
432
67k
The World Runs on Bad Software
bkeepers
PRO
72
12k
How to Ace a Technical Interview
jacobian
281
24k
Paper Plane
katiecoart
PRO
2
52k
First, design no harm
axbom
PRO
2
1.2k
Ruling the World: When Life Gets Gamed
codingconduct
0
280
Transcript
Kotlinの デフォルト引数の話 Kyoto.kt#3 2025/5/10 京都産業大学 上村太成
自己紹介 •taiseiue • X @taiseiue • id:taiseiue • taiseiue.jp •
C#/TypeScript/Perl • • JVM界とは無縁
None
None
None
Kotlinの話をします
デフォルト引数
None
None
Javaってデフォルト引数あったっけ
None
これが内部で どうなってるのかを見る
内部を見る
内部を見る jarを解凍する(tar xfみたいな)
内部を見る jarを解凍する(tar xfみたいな) バイトコードを逆アセンブル
None
None
None
None
None
None
None
None
None
0 0 0 0 0 0 1 1 ビットマスク
https://developers-jp.googleblog.com/2020/11/dont-argue-with-default-arguments.html
引数が32個以上の時は?
None
実行してみる
None
None
None
動いてるやん
None
None
まとめ • @JvmOverloads + デフォルト引数を持つ関数 • オーバーロードの関数とfunc$defaultみたいなメソッドに展開される • Func$defaultは引数に、どの引数が指定されてるかを表すフラ グをとる
• これはInt32型 • 32ビットに収まらない場合はもうひとつ引数ができる
None
None
完
Kotlinの デフォルト引数の話 Kyoto.kt#3 2025/5/10 京都産業大学 上村太成