Message from JavaScript discussions

August 2017

— A nodelist will change with the DOM?


Very bad memory management... Why create a linear data structure out of a nonlinear one when it already supplies an abstraction that lets you treat it as linear? Only naive people will be using an array imo

— Heh

— You even have item(n) if you want integer accessors

— So it's like putting a band aid on without even having an injury haha

— Also with the iterator your code is already polymorphic between a lot of data structures

— If you are using Symbol.iterator then your loops can accept a NodeList or Array easily

— It depends on what function created it I think

— It's live vs non-live

— As always the DOM API still has inconsistencies lol

— Thankfully the specification is clear about what is "old style"

— Https://