2026-10-23 19:10 UTC
@mcc@mastodon.social @cwebber@social.coop you brought back the cursed knowledge that javascript array indices are floats, because that's the number type in javascript and there are no other options, and now i have to inflict it on more people.
But it's fine* because there is Number.MAX_SAFE_INTEGER (apparently 2^53-1) to tell you how big your number can be before causing issues, and for some reasons your arrays can't be that big anyway (which is probably a good thing).
* for some value of "fine".
Replies (1)
-
@bgolus@mastodon.gamedev.place 2026-10-23 19:36
@cwebber@social.coop @mcc@mastodon.social @tshirtman@mas.to my favorite cursed JavaScript knowledge is everything is a NaN.