-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "standalone" resource method from Deno
namespace
#12107
Comments
I'm in favour but note that that this will completely break std/wasi, that's okay but I'll have to rewrite it. |
|
More methods that should be moved to
CC @caspervonb |
SGTM, patches coming right up. |
Should |
It's still debated, but most likely it won't be deprecated. |
I think we should, in favour of using explicit resource management (https://github.com/tc39/proposal-explicit-resource-management stage 2) and finalisers. Isn't the point of removing these to get rid of isomorphic resources internally? |
It's a good point and that proposal looks interesting. Ideally we should eyeball adding automatic cleanup for all resources using |
I don't see the point of removing these methods at this time - it just breaks user code unnecessarily. |
This is now done as of #25213 and Deno |
Methods like
Deno.read()
andDeno.write()
are effectively redundant as there are other better objects to manage the resources (likeDeno.File
) and having to deal explicitly with the rid which is just a number can be confusing and error prone to users.The text was updated successfully, but these errors were encountered: