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
38
0
Share
Kotlin2.0以降の新機能
punchdrunker
November 07, 2025
More Decks by punchdrunker
See All by punchdrunker
DnD in Compose
punchdrunker
0
300
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.2k
今時の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
Don't Prompt Harder, Structure Better
kitasuke
0
750
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
의존성 주입과 모듈화
fornewid
0
130
10 Tips of AWS ~Gen AI on AWS~
licux
5
380
2026-03-27 #terminalnight 変数展開とコマンド展開でターミナル作業をスマートにする方法
masasuzu
0
330
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
2
110
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
520
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
2.9k
Coding as Prompting Since 2025
ragingwind
0
830
Vibe NLP for Applied NLP
inesmontani
PRO
0
410
Running Swift without an OS
kishikawakatsumi
0
830
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
1
300
Featured
See All Featured
The Curse of the Amulet
leimatthew05
1
11k
The SEO Collaboration Effect
kristinabergwall1
0
420
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
Leo the Paperboy
mayatellez
7
1.7k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
130
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Typedesign – Prime Four
hannesfritz
42
3k
エンジニアに許された特別な時間の終わり
watany
106
240k
[SF Ruby Conf 2025] Rails X
palkan
2
950
Rails Girls Zürich Keynote
gr2m
96
14k
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