Polymorphic typing of an algorithmic language

Xavier Leroy 1
1 FORMEL
INRIA Rocquencourt
Abstract : The polymorphic type discipline, as in the ML language, fits well within purely applicative languages, but does not extend naturally to the main feature of algorithmic languages : in-place update of data structures. Similar typing difficulties arise with other extensions of applicative languages : logical variables, communication channels, continuation handling. This work studies (in the setting of relational semantics) two new approaches to the polymorphic typing of these non-applicative features. The first one relies on a restriction of generalization over types (the notion of dangerous variables), and on a refined typing of functional values (closure typing). The resulting type system is compatible with the ML core language, and is the most expressive type systems for ML with imperative features proposed so far. The second approach relies on switching to "by-name" semantics for the constructs of polymorphism, instead of the usual "by-value" semantics. The resulting language differs from ML, but lends itself easily to polymorphic typing. Both approaches smoothly integrate non-applicative features and polymorphic typing.
Document type :
Reports
Complete list of metadatas

https://hal.inria.fr/inria-00077018
Contributor : Rapport de Recherche Inria <>
Submitted on : Monday, May 29, 2006 - 11:51:13 AM
Last modification on : Friday, September 16, 2016 - 3:06:20 PM
Long-term archiving on : Monday, April 5, 2010 - 9:30:41 PM

Identifiers

  • HAL Id : inria-00077018, version 1

Collections

Citation

Xavier Leroy. Polymorphic typing of an algorithmic language. [Research Report] RR-1778, INRIA. 1992. ⟨inria-00077018⟩

Share

Metrics

Record views

286

Files downloads

927