Hacker News new | ask | show | jobs
by BjorksEgo 1101 days ago
"Using" is used for the same purpose in C# tries to keep keyword symmetry with

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

2 comments

Ah, I didn't realise that. It seems typescript wasn't the first language to use the verb "use" inconsistently :)

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref... https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

*Which Typescript tries to keep keyword symmetry with
TypeScript is just implementing a stage 3 JavaScript feature. It's not their own invention.
It’s not, though the author and champion of the TC39 proposal is a Microsoft employee and has generally championed features that have a close analogue to those from C# (eg. cancellation tokens).