'void' as a value

Brendan Eich brendan at mozilla.com
Sun Sep 8 16:21:06 PDT 2013


Brendan Eich wrote:
> Rather, it is the hand-coded task.js-like async libraries that will 
> have to cope with some object allocation overhead.

Even here, the destructuring optimization mentioned long ago by Lars 
Hansen (see 
http://wiki.ecmascript.org/doku.php?id=discussion:destructuring_assignment#performance):

   let {value, done} = task.thread.next(result);

and the object allocation could be optimized away.

/be


More information about the es-discuss mailing list