News for hackers. Stuff that matters.
Re:TypeScript 5.2's New Keyword: 'using' by roetlich on Monday June 19, 2023 @01:03PM (#36393507)
I love how this all went full circle. You know, just a few years ago, there still was the narrative of how bad JS is. Especially on HN. "Designed in only ten days", people made fun of it for being such a half-assed language. Stuff like the "Wat" talk, making fun of left-pad, etc.

Now it's "JavaScript used to be a little elegant". Fantastic.

More seriously:

1. This is typescript. Feel free to use js without it. (EDIT: This is wrong :)

2. This is a relatively easy feature, and there are equivalent features in some other mainstream languages.

You don't have to like it, I'm not sure I do, but this feels so dramatic.

Re:TypeScript 5.2's New Keyword: 'using' by johnny22 on Monday June 19, 2023 @01:11PM (#36393651)
no, it's not typescript. it's a language feature coming to js.
Re:TypeScript 5.2's New Keyword: 'using' by roetlich on Monday June 19, 2023 @01:14PM (#36393698)
Oh, thanks for the correction!