Claude Pache (2014-08-11T20:30:51.000Z)
domenic at domenicdenicola.com (2014-08-18T18:42:38.885Z)
Le 11 août 2014 à 21:30, Tab Atkins Jr. <jackalmage at gmail.com> a écrit : > Okay, it's still a little bit harder to read, due to the .concat() calls and their attendant additional parens, and the parens around the for-of bodies, but it's not *terribly* worse. It's still bad enough that I don't know if I'd write it. I think I'd have written (without comprehension): var unitlist = [...function*() { for (let c of cols) yield cross(rows, c) for (let r of rows) yield cross(r, cols) for (let rs of ["ABC","DEF","GHI"]) for (let cs of ["123","456","789"]) yield cross(rs, cs) }] although it is somewhat lengthier because of extra `function*`, `let`s and `yield`s.