medikoo (2014-02-21T20:54:13.000Z)
Brendan Eich-3 wrote
> Allen Wirfs-Brock wrote:
>> Do you have any real world use cases in mind that are driving the desire
>> for 
>> Array.from to preserve sparseness?
> 
> Use-cases for sparse arrays + copying them would be really helpful.

It was more call for a consistency, as all other methods are gentle to
sparse arrays, this one suddenly isn't and I was wondering what's the reason
for that.

It also brings confusion. I try to follow same patterns designing methods
that are not part of a standard, and now it's hard to decide how to handle
sparse arrays case, as it's in `map` or as in `from` (?)

However if you ask me for real world cases for sparse arrays, none comes to
my mind now. Personally I don't really use them (I think), but it'll be good
to hear from others.





--
View this message in context: http://mozilla.6506.n7.nabble.com/Array-from-and-sparse-arrays-tp308815p308837.html
Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com.
domenic at domenicdenicola.com (2014-03-02T22:42:15.533Z)
Brendan Eich wrote

> Use-cases for sparse arrays + copying them would be really helpful.

It was more call for a consistency, as all other methods are gentle to
sparse arrays, this one suddenly isn't and I was wondering what's the reason
for that.

It also brings confusion. I try to follow same patterns designing methods
that are not part of a standard, and now it's hard to decide how to handle
sparse arrays case, as it's in `map` or as in `from` (?)

However if you ask me for real world cases for sparse arrays, none comes to
my mind now. Personally I don't really use them (I think), but it'll be good
to hear from others.