Software

Polymorphic Type Inference for Scripting Languages With Object Extensions

Download Now Free registration required

Executive Summary

This paper presents a polymorphic type inference algorithm for a small subset of JavaScript. The goal is to prevent accessing undefined members of objects. The authors 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.

  • Format: PDF
  • Size: 329.3 KB