I understand that there's limitations on what can be packed into this release and in particular this proposal pushes the limits. But I don't buy the ES7-is-around-the-corner wager for two reasons.
The first reason is that I believe it's likely going to be a lot harder to get syntax changes into ES7 than for ES6. ES6 is basically the cruise boat to new syntax and once that boat sets sail it's going to be another decade before anyone wants to screw around with breaking syntax changes. Introducing breaking syntax changes in every release just isn't going to feasible with no language support for gracefully handling unknown syntax. The second reason is that even if my prediction for syntax changes in ES7 proves false, anything that does live in ES7 can expect to be unusable for practical purposes until ES7 is released. By the time that happens people will either have decided symbols with no syntax support aren't worth the trouble, or the world will have just that much more ugly code in it. Syntactic support for Symbols, of all the things on the table that are not sure things, is the one that *needs* to be in ES6. On Mon, Dec 3, 2012 at 8:47 PM, Axel Rauschmayer <a...@rauschma.de> wrote: > let iterable = { *[iterator]() { yield 5; } }; > > Presented without comment... > > > I'm sorry, but I reject this kind of argument. That code is simply more > concise than: > > let iterable = { [iterator]: function*() { yield 5 } }; > > > Given that the concise notation means that ': function' is omitted, > wouldn’t it be better to write: > > let iterable = { [iterator]*() { yield 5; } }; > > > -- > Dr. Axel Rauschmayer > a...@rauschma.de > > home: rauschma.de > twitter: twitter.com/rauschma > blog: 2ality.com > > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss