Why would you even give an object to a function that works on strings is the real question. Also, other languages have the toString method and are able to infer that you want to use it when you try to threat an object as a string. This is 100% programmer's fault.
View all comments
Show parent comment
0
u/DeathUriel Mar 21 '24
Why would you even give an object to a function that works on strings is the real question. Also, other languages have the toString method and are able to infer that you want to use it when you try to threat an object as a string. This is 100% programmer's fault.