z-logo
open-access-imgOpen Access
Polymorphic type inference for scripting languages with object extensions
Author(s) -
Tian Zhao
Publication year - 2011
Publication title -
citeseer x (the pennsylvania state university)
Language(s) - English
Resource type - Conference proceedings
ISSN - 0362-1340
DOI - 10.1145/2047849.2047855
Subject(s) - type inference , computer science , programming language , scripting language , inference , type (biology) , extension (predicate logic) , modular design , javascript , object (grammar) , object oriented programming , theoretical computer science , artificial intelligence , ecology , biology
This paper presents a polymorphic type inference algorithm for a small subset of JavaScript. The goal is to prevent accessing undefined members of objects. We define a type system that allows explicit extension of objects through add operation and implicit extension through method calls. The type system also permits strong updates and unrestricted extensions to new objects. The type inference algorithm is modular so that each function definition is only analyzed once and larger programs can be checked incrementally.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom