首页    期刊浏览 2025年06月12日 星期四
登录注册

文章基本信息

  • 标题:Concrete Types for TypeScript
  • 本地全文:下载
  • 作者:Gregor Richards ; Francesco Zappa Nardelli ; Jan Vitek
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2015
  • 卷号:37
  • 页码:76-100
  • DOI:10.4230/LIPIcs.ECOOP.2015.76
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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.
  • 关键词:Gradual typing; dynamic languages
国家哲学社会科学文献中心版权所有