Type reconstruction with first-class polymorphic values

  • Authors:
  • J. W. O'Toole, Jr.;D. K. Gifford

  • Affiliations:
  • MIT Laboratory for Computer Science, 545 Technology Sqqre, Cambridge, Massachusetts;MIT Laboratory for Computer Science, 545 Technology Sqqre, Cambridge, Massachusetts

  • Venue:
  • PLDI '89 Proceedings of the ACM SIGPLAN 1989 Conference on Programming language design and implementation
  • Year:
  • 1989

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present the first type reconstruction system which combines the implicit typing of ML with the full power of the explicitly typed second-order polymorphic lambda calculus. The system will accept ML-style programs, explicitly typed programs, and programs that use explicit types for all first-class polymorphic values. We accomplish this flexibility by providing both generic and explicitly-quantified polymorphic types, as well as operators which convert between these two forms of polymorphism. This type reconstruction system is an integral part of the FX-89 programming language. We present a type reconstruction algorithm for the system. The type reconstruction algorithm is proven sound and complete with respect to the formal typing rules.