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
41
0
Share
Kotlin2.0以降の新機能
punchdrunker
November 07, 2025
More Decks by punchdrunker
See All by punchdrunker
DnD in Compose
punchdrunker
0
310
what's new in Material Design で気になったトピック
punchdrunker
1
640
7カ国語に対応したサービスでの翻訳管理システムの改善事例
punchdrunker
1
1.4k
Java Bytecode Vertical Tasting
punchdrunker
2
1.5k
getting started with dark theme
punchdrunker
2
1.1k
Practical Activity Transition in Android
punchdrunker
0
1.3k
今時のProgress indicator / Replacing ProgressDialog with ProgressBar
punchdrunker
0
730
レビュー評価4.7の秘密 / The Secret To A Better Reputation
punchdrunker
2
2.1k
Dynamic Feature Modules 入門
punchdrunker
2
2.8k
Other Decks in Programming
See All in Programming
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
JOAI2026 1st solution - heron0519 -
heron0519
0
180
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
240
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
1k
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
260
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
110
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
150
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
320
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
170
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
180
when storing skills in S3 file
watany
3
1.3k
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
290
Music & Morning Musume
bryan
47
7.2k
Amusing Abliteration
ianozsvald
1
160
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
Being A Developer After 40
akosma
91
590k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
350
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
180
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