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
Kotlinのデフォルト引数の話
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
taiseiue
May 10, 2025
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kotlinのデフォルト引数の話
Kyoto.kt #3
で発表した資料です。
taiseiue
May 10, 2025
Transcript
40 slides
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 京都産業大学 上村太成
More Decks by taiseiue
See All by taiseiue
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
180
同人サークルを作って 8年経った僕らの現在地
taiseiue
0
310
RustでもVJしたい!
taiseiue
0
120
“⾞が通れるほど⼤きな”セキュリティーホールを抑えながらログインしたい
taiseiue
0
650
.NETの上でお手製の言語を動かす技術
taiseiue
0
130
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
510
振り向き美人
taiseiue
0
53
Tadpole operators
taiseiue
0
100
(自作の)プログラミング言語ができるまで
taiseiue
1
710
Other Decks in Technology
See All in Technology
From vibe coding to reliable (agentic) development
jcabot
0
140
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
570
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
160
マネージャーをエスパーにしない マネジメントされる側から始める、働きやすい現場づくり
comi190327
1
840
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
18
29k
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
130
変更差分を読むために環境を整備しよう
pipepasta
1
490
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
110
AI×アジャイルで、石橋を高速で叩きながら渡る~電力会社がゼロから築いた会員サイト改善プロセス~ / 20261112 Ayami Kanazawa & Shigeru Hirai
shift_evolve
PRO
1
120
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
170
kubellの最新データ分析環境
kubell_hr
2
210
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
160
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
570
Automating Front-end Workflow
addyosmani
1370
210k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
YesSQL, Process and Tooling at Scale
rocio
174
15k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
110
The agentic SEO stack - context over prompts
schlessera
0
1k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Code Reviewing Like a Champion
maltzj
529
40k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
360
Google's AI Overviews - The New Search
badams
0
1.7k