4 ms·
Can you expand on your hatred of JS arrays? I don't understand how iteration semantics really affect anything with them since the spec gaurantees that numerical
by pitaj 9y ago
Can you expand on your hatred of JS arrays? I don't understand how iteration semantics really affect anything with them since the spec gaurantees that numerical properties come first, in order, regardless.
- ridiculous_fish 9y agoThe biggest issue is precisely concerning the definition of "numerical properties". Here are some "numerical properties:" 5 -0 "3" 3.0 4294967294 But these are not "numerical properties:" "-0" -1 "3.0" 4294967295 Which means that, when setting a property on an array, you must attempt to parse the object in a very peculiar way so that you can make a decision about iteration order, and whether to adjust the length property.