Multi-dollar String Interpolation in Kotlin

Improve $ handling in string literals

View at original site


Kotlin’s string interpolation has been a much-liked feature from the beginning, and in this video, we'll learn about how JetBrains is adding more flexibility to it with multi-dollar string interpolation.

This feature is enabled by default from Kotlin 2.2.0.

Related Resources

Your First AI Agent in Kotlin
Your First AI Agent in Kotlin
Get started with Koog today!
Exposed inline value classes for Java
Exposed inline value classes for Java
Use value classes from Java code with Kotlin 2.2
Nested type aliases in Kotlin 2.2
Nested type aliases in Kotlin 2.2
Use type aliases inside other structures