> > I don't know about implicit return. TC39 wants to avoid it in anything > that looks like a function (body). Does the => distinguish this case > enough? Consider a large body-block.
I can see the problem. I would personally rate this as less potentially confusing than "() => expr", though. > The sweet spot looking at PrototypeJS is a single expression body. There > are some longer inject funargs but they are the minority AFAICS. > That wouldn't surprise me, given the nature of Prototype. I'll wager it's not typical though. > Surveying other libraries would be helpful. Yes - enough guessing - I'll do my best to do some counting with different libraries (both for DOM and for nodejs) and report back some numbers. Erg - busy work : ) Any one else want to help? We should be able to get a good idea by counting anonymous function expressions, and of those, which ones only contain a single statement, which is a return statement. kevin
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

