@vascorsd @maltimore
The problem (particularly in dynamically typed languages like Python) is that any change to type inference would be a major breaking change.
You could create YAL (Yet Another Language) that treats non-integer number literals as decimals instead of floating point, but then you would have other problems to contend with. The ability of a compiler/interpreter to mind-read is limited.
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Jens N (aserraric@social.tchncs.de)'s status on Saturday, 18-Nov-2023 12:34:07 JSTJens N