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
Kotlin2.0以降の新機能
Search
punchdrunker
November 07, 2025
Programming
0
28
Kotlin2.0以降の新機能
punchdrunker
November 07, 2025
Tweet
Share
More Decks by punchdrunker
See All by punchdrunker
DnD in Compose
punchdrunker
0
290
what's new in Material Design で気になったトピック
punchdrunker
1
620
7カ国語に対応したサービスでの翻訳管理システムの改善事例
punchdrunker
1
1.3k
Java Bytecode Vertical Tasting
punchdrunker
2
1.4k
getting started with dark theme
punchdrunker
2
1.1k
Practical Activity Transition in Android
punchdrunker
0
1.2k
今時のProgress indicator / Replacing ProgressDialog with ProgressBar
punchdrunker
0
720
レビュー評価4.7の秘密 / The Secret To A Better Reputation
punchdrunker
2
2.1k
Dynamic Feature Modules 入門
punchdrunker
2
2.7k
Other Decks in Programming
See All in Programming
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
140
Graviton と Nitro と私
maroon1st
0
170
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
220
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
170
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
40k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.5k
Python札幌 LT資料
t3tra
7
1.1k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
680
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
870
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.2k
Patterns of Patterns
denyspoltorak
0
660
dchart: charts from deck markup
ajstarks
3
960
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.8k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
560
Designing for Timeless Needs
cassininazir
0
120
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
400
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
100
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
890
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Between Models and Reality
mayunak
1
170
Utilizing Notion as your number one productivity tool
mfonobong
2
200
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
180
Building Adaptive Systems
keathley
44
2.9k
Transcript
Kotlin2.0以降の新機能 @punchdrunker
自己紹介 / @punchdrunker 最近買ってよかったもの • 新もののオリーブオイル • 下地さがし どこ太 •
遠近両用レンズ • 見はらし世代(映画)
Kotlin 2.xの新機能(大体experimental) • 2.2 ◦ context parameter ◦ guard condition
◦ nested type alias ◦ data-flow-based exhaustiveness • 2.3(これから) ◦ unused return value ◦ support Java 25
オプションの設定 experimentalなものたちを有効にする引数をコンパイラに渡すと使える
Demo
- context parameter - 利用するメソッドが必要とする依存対象だけ用意すればよいので、巨大な repositoryとかに使うと無 駄なクラスの引き回しなどが省けそう (省メモリ) - 手軽にDIぽいことができて良さそうだが、実質引数を増やすのとほぼ同じなので、なんかすごさは
よくわらかない - 地味に便利で助かる - guard conditions - data-flow based exhaustiveness 感想
resources demoにつかったコード https://github.com/punchdrunker/hocho/blob/main/app/src/test/java/tokyo/punchdr unker/hocho/helper/KotlinNewFeatureTest.kt