“We expect skepticism” — Visual Studio Magazine
While it may look a lot like TypeScript, it’s different.
Microsoft’s Daniel Rosenwasser, senior program manager for TypeScript, wrote a comprehensive blog post on March 9 explaining the proposal, which could take years to develop if it goes ahead.
As the proposal above indicates, the syntax would act as comments, not affecting the execution of the surrounding code.
Here’s a graphic showing what a developer’s inner loop would look like in the new schema as it relates to writing and race coded:
- type annotations on variables and functions
- (optional) modifiers (
?) for parameters and class members
- type declarations (
- type assertion operators (
While other constructs like visibility modifiers — for example,
protected — could also be in scope, others like enumerations, namespaces and parameter properties would be out of scope as they have observable runtime behavior.
“Achieving Stage 1 would mean that the standards committee believes type syntax support is worth considering for ECMAScript,” Rosenwasser said. “It’s not a foolproof thing – there are many valuable perspectives on the committee, and we expect some skepticism. A proposal like this will receive plenty of commentary and proper consideration. This may involve many design changes along the way, and can take years to show results.
David Ramel is an editor and writer for Converge360.