"RokuMarkn" wrote:
The requirement to explicitly convert to a string is handled different in different languages. For example, in Java an object is automatically converted to a string when necessary, while in Javascript and C++ an explicit conversion is required, like in Brightscript.
Javascript does automatic type coercions, which is
evil, see
https://www.destroyallsoftware.com/talks/wat past the 1min mark (esp. the "nanananana watman" finale).
It leads to deeply mystifying bugs and should not be done, shows experience of language makers (alas too late for J/S).
OTOH, having `sprintf` equivalent might be good.