val age= 23 println("$age") vs println("${age.toSt...
# stdlib
r
val age= 23 println("$age") vs println("${age.toString()") String interpolation vs toString which is better to use in this basic use case. Is there any performance impact? ( first question in this channel hope this dumb question is in the right channel)
j
You want #compiler, but they all produce exactly same bytecode: https://kotlin.godbolt.org/z/9cej3c6GE
🙏 2
r
Thanks!