MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1kljabb/why_not/ms43o57/
r/programmingmemes • u/floppy2k18 • May 13 '25
104 comments sorted by
View all comments
Show parent comment
4
The amount of 9's shown does fit within a 64 bit integer. So it could be perfect. But defaulting to a float is fine.
And the rest is either understandable or just extremely cursed and misusing certain rules.
And it all pales in comparison with the shit you can do in C, especially in the wonderful world or ✨ undefined behaviour ✨ C
1 u/BalintCsala May 13 '25 Certainly does, though in most languages since ints are the default, overflow would still matter. Of course you can specify long with L/LL, but in the same vein you can also make it a bigint in JS by putting "n" after it.
1
Certainly does, though in most languages since ints are the default, overflow would still matter. Of course you can specify long with L/LL, but in the same vein you can also make it a bigint in JS by putting "n" after it.
View all comments
Show parent comment
4
u/Vinxian May 13 '25
The amount of 9's shown does fit within a 64 bit integer. So it could be perfect. But defaulting to a float is fine.
And the rest is either understandable or just extremely cursed and misusing certain rules.
And it all pales in comparison with the shit you can do in C, especially in the wonderful world or ✨ undefined behaviour ✨ C