Does supporting the Explicit Resource Management proposal hurt the ecosystem? #4645
Unanswered
JadenSimon
asked this question in
Q&A
Replies: 0 comments 3 replies
|
The proposal is already at Stage 3 at TC39 and is available in Chrome, Deno, and probably more environments that I did not check. FYI - Node recently removed its polyfills. |
1 reply
|
I appreciate you bringing this up! It’s interesting to hear that using might not be as beneficial as Symbol.dispose/Symbol.asyncDispose. If the community is leaning toward asyncDispose, it seems like a smarter long-term choice. I’ve had my own struggles with using, especially with closures—it can get pretty messy and confusing. I’d love to hear more from others about their experiences, too! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
To preface: I'm not the type of person to create sensationalist discussions. My main concern here is the impact on the language and the developer experience, and I believe this needs more visibility.
By supporting this proposal, NodeJS is helping to entrench a feature that the author himself acknowledges is less valuable, compared to an alternative, in its current state.
From the proposal author:
This raises doubts about this feature in my mind. If anyone has their own experiences regarding
using, I would really like to hear it. This is something the community should weigh in on. I personally found it to be clunky and confusing, especially with closures. I was very surprised when I found outusingbasically breaks with closures.All reactions