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
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
2
110
飯MCP
yusukebe
0
510
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
感情を設計する
ichimichi
5
1.5k
의존성 주입과 모듈화
fornewid
0
130
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
240
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
2.9k
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
250
3分でわかるatama plusのQA/about atama plus QA
atamaplus
0
170
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
780
10 Tips of AWS ~Gen AI on AWS~
licux
5
380
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
170
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Automating Front-end Workflow
addyosmani
1370
200k
Abbi's Birthday
coloredviolet
2
7k
Paper Plane (Part 1)
katiecoart
PRO
0
6.6k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Making the Leap to Tech Lead
cromwellryan
135
9.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Designing for Timeless Needs
cassininazir
0
190
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
400
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Building the Perfect Custom Keyboard
takai
2
730
Building a Scalable Design System with Sketch
lauravandoore
463
34k
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