作者: Peter Thiemann
DOI: 10.1007/978-3-540-31987-0_28
关键词: Scripting language 、 Unobtrusive JavaScript 、 Computer science 、 Operational semantics 、 Program analysis 、 Object (computer science) 、 Object-oriented programming 、 Type theory 、 Type safety 、 JavaScript 、 Programming language
摘要: JavaScript is a popular language for client-side web scripting. It has dubious reputation among programmers two reasons. First, many programs are written against rapidly evolving API whose implementations sometimes contradictory and idiosyncratic. Second, the only weakly typed comes virtually without development tools. The present work first attempt to address second point. does so by defining type system that tracks possible traits of an object flags suspicious conversions. Because classless, object-based with first-class functions, must include singleton types, subtyping, class record labels. The covers representative subset there soundness proof respect operational semantics.