Rick Waldron (2014-03-14T17:06:28.000Z)
domenic at domenicdenicola.com (2014-03-21T16:50:42.877Z)
On Fri, Mar 14, 2014 at 12:24 PM, Kevin Smith <zenparsing at gmail.com> wrote: > Sure, note the equals (which is my point). > > ... > > Same thing. Note the equals, which gives the reader the necessary visual > cue that we are entering an AssignmentExpression context. What about the following: Functions with return AssignmentExpression that include "=" and without--are the ones without also confusing without the "necessary" visual cue? ```js function a() { var F; return F = function() {}; } function b() { var C; return C = class {}; } ``` vs. ```js function c() { return function F() {}; } function d() { return class C {}; } ``` Or yield in generators? ```js function * a() { var F; yield F = function F() {}; } function * b() { var C; yield C = class C {}; } ``` vs. ```js function * c() { yield function F() {}; } function * d() { yield class C {}; } ``` > Sorry, I don't understand this. ES6 modules, whatever they are, will be > the same across platforms. Isn't that exactly what I said? You asked "So why are we?", I answered "To make a single form that works across platforms" and added that amd and cjs don't "just work" together. Then I concluded by with a specific example, but surely that wasn't too misleading?