I actually now thing we should deprecate absolutely all implicit coercion of bool to string, this includes printf. printf uses the same function for coercion as the rest of the engine so it does trigger a deprecation. We can manually exclude printf and other functions but it makes me think where we should stop. Ultimately, I think using bools in printf has the same issues as everywhere else.
I was thinking of doing this for float to int, but Nikita was against it because these functions perform "explicit" casts, and should follow that behaviour.
I actually now thing we should deprecate absolutely all implicit coercion of bool to string, this includes
printf
.printf
uses the same function for coercion as the rest of the engine so it does trigger a deprecation. We can manually excludeprintf
and other functions but it makes me think where we should stop. Ultimately, I think usingbool
s inprintf
has the same issues as everywhere else.Let me know what you think.