const VS features detection

Kevin Smith zenparsing at
Thu Jan 9 06:35:23 PST 2014

> I may warm up to the extra complexity more easily if somebody could
> present at least some compelling use cases. :)
Mark's mention of yield got me thinking about await expressions.  Hopefully
I'm using this correctly:

    // stat is null or a Stat object
    const stat = do { try { await FS.stat(path) } catch (x) { null } }

Does that work as a use case for block semantics?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list