Acting this flippant isn’t helpful.
Acting this flippant isn’t helpful.
Could it be that this whole paradigm (which by the way has been devised for a different and much simpler use case, and abused forever since) isn't sustainable anymore?
If anything, it’s odd that they added these conveniences like reflection that make it more magical than it should be.
(Edited for clarity)
Since JavaScript was invented specifically to manipulate the DOM, I'm not sure that that follows.
https://ecma-international.org/wp-content/uploads/ECMA-262_1...
The reason for NodeList instead of Array is the same
For example the Event interface definition[0] contains parts like
const unsigned short NONE = 0;
[0] https://dom.spec.whatwg.org/#interface-eventIn modern DOM APIs, it would be a string enum.
I would not surprise me if modern addition or revisions to the spec were more JS inspired