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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
punchdrunker
November 07, 2025
Programming
37
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
Claude Codeログ基盤の構築
giginet
PRO
7
3.9k
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
310
感情を設計する
ichimichi
5
720
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
2
390
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
830
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
170
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
690
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
550
事業会社でのセキュリティ長期インターンについて
masachikaura
0
230
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
230
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
990
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
Utilizing Notion as your number one productivity tool
mfonobong
4
280
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
470
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
210
A Modern Web Designer's Workflow
chriscoyier
698
190k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
95
The agentic SEO stack - context over prompts
schlessera
0
730
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
How to Talk to Developers About Accessibility
jct
2
170
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