Skip to main navigation Skip to search Skip to main content

Colored local type inference

  • EPFL

Research output: Contribution to journalArticlepeer-review

16 Scopus citations

Abstract

We present a type system for a language based on F, which allows certain type annotations to be elided in actual programs. Local type inference determines types by a combination of type propagation and local constraint solving, rather than by global constraint solving. We refine the previously existing local type inference system of Pierce and Turner[PT98] by allowing partial type information to be propagated. This is expressed by coloring types to indicate propagation directions. Propagating partial type information allows us to omit type annotations for the visitor pattern, the analogue of pattern matching in languages without sum types.

Original languageEnglish
Pages (from-to)41-53
Number of pages13
JournalSIGPLAN Notices (ACM Special Interest Group on Programming Languages)
Volume36
Issue number3
DOIs
StatePublished - 2001
Externally publishedYes

Fingerprint

Dive into the research topics of 'Colored local type inference'. Together they form a unique fingerprint.

Cite this