+ concatenates strings, but not numbers
# announcements
h
+ concatenates strings, but not numbers
b
That’s intentional because it’s a strongly-typed language
Copy code
val a = 1
val b = 1
"$a$b" == "11"
The difference also is operators are designed to be overloaded. There’s no overloading in a niche operator that always performs string concatenation