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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
punchdrunker
November 07, 2025
Programming
43
0
Share
Kotlin2.0以降の新機能
punchdrunker
November 07, 2025
More Decks by punchdrunker
See All by punchdrunker
DnD in Compose
punchdrunker
0
320
what's new in Material Design で気になったトピック
punchdrunker
1
640
7カ国語に対応したサービスでの翻訳管理システムの改善事例
punchdrunker
1
1.5k
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
740
レビュー評価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
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
19
7.9k
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
130
AIエージェントの隔離技術の徹底比較
kawayu
0
450
Claspは野良GASの夢をみるか
takter00
0
150
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
430
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.8k
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
170
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
370
今さら聞けないCancellationToken
htkym
0
210
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
200
Oxcを導入して開発体験が向上した話
yug1224
4
270
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
790
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
240
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
590
Deep Space Network (abreviated)
tonyrice
0
160
Navigating Weather and Climate Data
rabernat
0
210
Building Adaptive Systems
keathley
44
3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
200
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Why Our Code Smells
bkeepers
PRO
340
58k
A Tale of Four Properties
chriscoyier
163
24k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
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