My initial feedback is that this needs a lot more "why" in comparison to the "how". The only inkling of why this might be useful is an unsourced assertion that it's done in Clojure, for unknown reasons. The example code isn't very compelling either; something more real-world would be good there. ________________________________ From: Lee Byron<mailto:leeby...@fb.com> Sent: 2015-02-23 00:58 To: es-discuss@mozilla.org<mailto:es-discuss@mozilla.org> Subject: short-circuiting Array.prototype.reduce
Hey all, I’d like to propose an addition to ES7 to add @@reduced as a way to short-circuit from Array.prototype.reduce. I’ve written up a polyfill and explanation here: https://github.com/leebyron/ecma-reduced I would love your feedback on this. Lee
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss