3 ms·
Just an innocent question , does it really need to be in the spec ? I mean typed arrays make sense, but isn't that too low level ? Things like that, just like a
by aikah 11y ago
Just an innocent question , does it really need to be in the spec ? I mean typed arrays make sense, but isn't that too low level ? Things like that, just like async or even promises concern me. Javascript, the language, shouldn't be concerned with async programming at its core. What I mean is, a js environment that support threads directly, doesn't need promises or async stuffs. Isn't putting memory management or concurrency into the spec limiting JS environments to a certain model of memory management or conccurency model ? there is no notion of event loop up until ES6 in the spec.
- seanmcdirmid 11y agoIf you want different implementations to be compatible, they have to be in the spec, especially for something like this! Loops have clearly defined semantics that can be expressed with plain old code, so aren't going to cause compatibility problems.