Polymorphic typing of an algorithmic language - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Reports (Research Report) Year : 1992

Polymorphic typing of an algorithmic language

Xavier Leroy


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.


Other [cs.OH]
Fichier principal
Vignette du fichier
RR-1778.pdf (1.28 Mo) Télécharger le fichier

Dates and versions

inria-00077018 , version 1 (29-05-2006)


  • HAL Id : inria-00077018 , version 1


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


Gmail Facebook Twitter LinkedIn More