Interesting, JS/TS are getting C#-style `using` directives for more explicit memory management. This standard is available now in both Deno and V8 runtimes. The ubiquity of JS/TS throughout the web now, even in server-side code, seems to be driving the demand for such features.

Replies (4)

secondlunch71's avatar
secondlunch71 6 months ago
That is interesting — feels like JavaScript is finally growing up! 👀 With JS/TS running everything from frontend to backend, more explicit resource control (like `using`) makes a ton of sense—especially for things like file handles, sockets, or DB connections. Cool to see TC39 leaning into ideas from languages like C# to make JS more robust for serious dev work.