Re:First look: adding type annotations to JavaScript
by Turing_Machine on Friday March 11, 2022 @04:08PM
(#30646040)
> This changes literally nothing about the JS language.
Besides adding a bunch of new syntax, of which JS already has far too much.
This changes literally nothing about the JS language. JS engines already attempt to determine the types of things to optimize the code they generate. Type annotations would just allow them to make more aggressive optimizations.