【24h】

Towards a Type System for Analyzing JavaScript Programs

机译:面向用于分析JavaScript程序的类型系统

获取原文
获取原文并翻译 | 示例

摘要

JavaScript is a popular language for client-side web scripting. It has a dubious reputation among programmers for two reasons. First, many JavaScript programs are written against a rapidly evolving API whose implementations are sometimes contradictory and idiosyncratic. Second, the language is only weakly typed and comes virtually without development tools. The present work is a first attempt to address the second point. It does so by defining a type system that tracks the possible traits of an object and flags suspicious type conversions. Because JavaScript is a classless, object-based language with first-class functions, the type system must include singleton types, subtyping, and first class record labels. The type system covers a representative subset of the language and there is a type soundness proof with respect to an operational semantics.
机译:JavaScript是客户端Web脚本的一种流行语言。由于两个原因,它在程序员中享有声誉。首先,许多JavaScript程序都是针对快速发展的API编写的,其实现有时是矛盾且特有的。其次,该语言的类型很少,几乎没有开发工具。当前的工作是解决第二点的第一次尝试。它通过定义一个跟踪对象的可能特征并标记可疑类型转换的类型系统来实现。因为JavaScript是具有一流功能的无类,基于对象的语言,所以类型系统必须包括单例类型,子类型和一流记录标签。类型系统涵盖语言的代表性子集,并且在操作语义方面有类型健全性证明。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号