Post

Kotlin 2.4.0 ships with a HUGE power-assert update I've been slowly working on for *years*. It's the culmination of efforts I started before joining JetBrains. It's subtle from the user's perspective, but it helped fixed a bunch of problems and unblocks tons of future improvements! 🚀

kotlinlang.orgPower-assert compiler plugin | Kotlin
Kotlin by JetBrains@kotlinlang.org

📢 Kotlin 2.4.0 is out! Learn more: ➡️ kotl.in/2-4-0

4 reposts12 likes

But why a runtime library? It fixed: array content in diagrams, multiline string handling, and excessive vertical space. It unblocks: diffs, local variables in diagrams, and non-assert use cases. And assertion libraries can support power-assert out-of-the-box, without custom Gradle config!