Why is String with Int concatenation not symmetric...
# stdlib
h
Why is String with Int concatenation not symmetric?
Copy code
println("test" + 1)
println( 1 + " test")
The second line is invalid code because String defines an generic plus
kotlin.String.plus
whereas Integer does not do so. This feels odd, especially since Java does both.