'use typed'; directive

Are there any plans to create a typed version of the language? For example, something like 'use strict'; but 'use typed'; and a typing such as Typescript or C is incorporated. I think it could be useful in larger projects.

I think that with the numbers it would be necessary to create some syntactic sugar, as with the classes.
I know, the proposal is a bit vague, but I found the directive interesting because it allows developers to choose whether they want, to type or not.

1 Like

Not TC39, but been observing their discussions and such for a while.

Just wanted to give you a heads up that new pragmas like that have virtually zero chance of succeeding unless they offer something seriously compelling like defining native functions and such (where transpilation and polyfills aren't possible). Criticisms range from feeling too much like versioning the web (a really hard lesson learned pre-ES6) to feeling too Perl-y with all their use declarations.

So far, the only proposals I've seen using pragmas (and sticking with them) are just these two: