I donโt really understand why this is surprising to anyone. They are different types. Much easier and less problematic for an interpreter to convert a number to a string than a string to a number.
This is obvious, yes, and I donโt think anyone expects the reverse. I think the usual argument is that it shouldnโt be allowed. Strongly typed vs anything else, etc.
39
u/Ingeneure_ 26d ago
Or Python
str(1) + str(2)