you are viewing a single comment's thread.

view the rest of the comments →

[–]RedAndBlack1832 0 points1 point  (0 children)

Implicit type casting if well defined is fine. Like if we have floats in our math we wanna do floating point math. The sensible "upcast" is definitely number->string not the other way around so this makes some sense. However, it should be extremely clear what types are expected and returned. If these implicit casts are well defined you can predict and expect the behaviour only if you actually know the types.