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
36
Kotlin2.0以降の新機能
punchdrunker
November 07, 2025
Tweet
Share
More Decks by punchdrunker
See All by punchdrunker
DnD in Compose
punchdrunker
0
300
what's new in Material Design で気になったトピック
punchdrunker
1
630
7カ国語に対応したサービスでの翻訳管理システムの改善事例
punchdrunker
1
1.4k
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
おれのAgentic Coding 2026/03
tsukasagr
1
120
AIと共にエンジニアとPMの “二刀流”を実現する
naruogram
0
100
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
170
AI 開発合宿を通して得た学び
niftycorp
PRO
0
180
ファインチューニングせずメインコンペを解く方法
pokutuna
0
210
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
430
Claude Codeログ基盤の構築
giginet
PRO
7
3.7k
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
490
ロボットのための工場に灯りは要らない
watany
12
3.2k
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
110
ローカルで稼働するAI エージェントを超えて / beyond-local-ai-agents
gawa
0
170
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
210
Featured
See All Featured
Balancing Empowerment & Direction
lara
5
1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
700
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
Prompt Engineering for Job Search
mfonobong
0
240
A Modern Web Designer's Workflow
chriscoyier
698
190k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
150
Thoughts on Productivity
jonyablonski
75
5.1k
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