Yeah, I completely agree. It’s straightforward, but it’s got a lot of downsides. Everything always takes eight bytes. Even if you’re just storing 0 or 1.
It makes handling numbers a lot simpler in most cases, though, and simplicity was the goal of JavaScript. I just wish there was a better solution than typed arrays.
Yeah, I completely agree. It’s straightforward, but it’s got a lot of downsides. Everything always takes eight bytes. Even if you’re just storing 0 or 1.
It makes handling numbers a lot simpler in most cases, though, and simplicity was the goal of JavaScript. I just wish there was a better solution than typed arrays.