Iterators, generators, finally, and scarce resources
Kevin Smith
zenparsing at gmail.com
Wed Apr 30 05:14:20 PDT 2014
>
>
> I also note
> this is the first JS construct that would introduce the notion of
> resource acquisition and also of implicit finallies.
>
And that is why late changes like this are risky. As far as I know,
there's been no published work exploring how this aspect of for-of would
interact with future designs which might address resource management in
general.
Furthermore, as far as I know we have absolutely no real-world experience
with how such an auto-cleanup construct would actually fare in javascript.
There is no time to do the homework that this effort would properly
require.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140430/35f9b92d/attachment.html>
More information about the es-discuss
mailing list