Herhut, Stephan A wrote:
Either, rather conservatively, that an unzip primitive be added to Array/ParallelArray
+1
or that destructuring be extended such that if it encounters a lhs object pattern and a rhs evaluating to an array of objects that it be destructured into objects of arrays corresponding to variables specified in the lhs.
-1 to implicit unzip. This is fragile (EIBTI) and in fact arrays are objects, so breaking the equivalence of {0:x,1:y} and [x,y] (note no need to get 'length' in the latter pattern) seems unwarranted.
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

