"Small" things I highly appreciate about Kotlin coming from Java - Chapter 2
๐ฆ๐๐ฟ๐ถ๐ป๐ด ๐ง๐ฒ๐บ๐ฝ๐น๐ฎ๐๐ฒ๐
๐๐๐๐๐๐โ๐๐๐๐.๐๐๐๐.๐ป๐๐๐๐๐ณ๐๐๐
๐๐๐โ๐๐๐๐()โ{
โโโโ๐๐๐โ๐๐๐๐โ=โ"๐น๐๐๐โ๐ณ๐๐"
โโโโ๐๐๐โ๐๐๐๐๐ขโ=โ๐ป๐๐๐๐๐ณ๐๐๐.๐๐๐ ()
โโโโ๐๐๐๐๐๐๐("๐ท๐๐๐๐,โ$๐๐๐๐!โ๐๐๐๐๐ขโ๐๐โ${๐๐๐๐๐ข.๐๐๐ข๐พ๐๐๐๐๐}.")
}
https://kotlinlang.org/docs/strings.html#string-templates
No more overusing ๐๐๐๐๐๐.๐๐๐๐๐๐ parameters. No more clunky ๐ผ๐๐๐๐๐๐๐ต๐๐๐๐๐.๐๐๐๐๐๐. It just works.
#Kotlin #Java #JVM #String #StringInterpolation #StringTemplates #SoftwareDevelopment