Export * as name from source

2015-03-06 Thread Lee Byron
“someName” to this module’s scope. In common-js terms, transpiled to: exports.someName = require(“module”); Does anyone have context as to why this piece of syntax doesn’t exist? Is there a case to be made to incrementally add it in ES7? - Lee Byron

Re: short-circuiting Array.prototype.reduce

2015-02-24 Thread Lee Byron
Thanks for this additional context, Brendan. The block lambda revival was particularly interesting to read up on. I understand why we went down the arrow function path, but it’s fun to think about what ES6+ might look like had we taken that different path. I’d like to keep this proposal scoped

short-circuiting Array.prototype.reduce

2015-02-22 Thread Lee Byron
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

ReverseIterable interface

2015-02-19 Thread Lee Byron
that can be efficiently iterated in reverse. It also suggests adding `reverse()` to %IteratorPrototype% as an API sugar. I’m looking for broad feedback as well as stakeholders if this functionality is important to you. Thanks Lee Byron ___ es-discuss