When I want to concat Strings and I doWithString(pojo.name + " " + pojo.value)
why is Android Studio proposing “convert concatenation to template” ?
Then it converts to doWithString("${pojo.name} ${pojo.value}")
. Why? Are there any speed advantages?
And what about doWithString(pojo.name.plus(" ").plus(pojo.value))
What way is recommended?