5 ms·
string(int) to result in the string representation of the int value rather than the code point int represents comes at surprise and is orthogonal to the other c
by jhoechtl 7y ago
string(int) to result in the string representation of the int value rather than the code point int represents comes at surprise and is orthogonal to the other conversion functions.
Please don't do it.
That direction of conversion, if done right, requires respecting locale which string(int) is fully unaware.
- morelisp 7y agoThe change is to warn people against using `string(int)`, not to change its behavior. The goal is to remove the conversion, not make it replace `Itoa`.