Concrete Types for TypeScript
Concrete Types for TypeScript
复制标题
TypeScript 的具体类型
DOI:
10.4230/lipics.ecoop.2015.76
复制
发表时间:
2015
影响因子:
--
通讯作者:
J. Vitek
中科院分区:
文献类型:
--
作者:
G. Richards;Francesco Zappa Nardelli;J. Vitek
Typescript extends JavaScript with optional type annotations that are, by design, unsound and, that the Typescript compiler discards as it emits code. This design point preserves programming idioms developers are familiar with, and allows them to leave their legacy code unchanged, while offering a measure of static error checking in parts of the program that have type annotations. We present an alternative design for TypeScript, one where it is possible to support the same degree of dynamism, but where types can be strengthened to provide hard guarantees. We report on an implementation, called StrongScript, that improves runtime performance of typed programs when run on a modified version of the V8 JavaScript engine.