skip to main content
10.1145/75277.75284acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article
Free Access

Type checking records and variants in a natural extension of ML

Published:03 January 1989Publication History

ABSTRACT

Strongly typed languages with records may have inclusion rules so that records with more fields can be used instead of records with less fields. But these rules lead to a global treatment of record types as a special case. We solve this problem by giving an ordinary status to records without any ad hoc assertions, replacing inclusion rules by extra information in record types. With this encoding ML naturally extends its polymorphism to records but any other host language will also transmit its power.

References

  1. CAMLr.Pierre Weis. "The CAML Reference Manual". INRIA 1987.Google ScholarGoogle Scholar
  2. CAMLp.Guy Cousineau and G~rard Huet. "The CAML Primer". INRIA 1987.Google ScholarGoogle Scholar
  3. Car84.Luca Cardelli. "A Semantics of Multiple Inheritance". In Information and Computation 1988. In Semantics of Data Types, Lecture Notes in Computer Science n. 173, Springer Verlag, 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Car86.Luca Cardelli. "Amber". In Combinatots and Functional Programming Languages, Proceedings of the 13th Summer School of the LITP, Le Val D'Ajol, Vosges, France, May 1985, Lecture Notes in Computer Science n. 242, Spinger Verlag, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Car88.Luca Cardelli. "Structural Subtyping and the notion of Power Type". In Proceedings of the Fifteenth Annual Symposium on Principles Of Programming Languages, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Coppo.Mario Coppo. "An Extended Polymorphic Type System for Applicative Languages", in Proceedings of MFCS '80, Lectures Notes in Computer Science n. 88, Springer Verlag, pages 194-204. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. CW85.Luca Cardelli and Peter Wegner. "On understanding types, data abstraction~ and polymorphism". Computing Surveys, vol. 17(4). 198 . Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. FM88.Y-C. Fuh and P. Mishra. "Type inference with subtypes". In Proceedings of ESOP '88, Lecture Notes in Computer Science n. 300, Springer Verlag, pages 94- 114, 1988. Google ScholarGoogle ScholarCross RefCross Ref
  9. Huet.G~rard ttuet. "R~solution d'~quations dans les langages d'ordre 1, 2, ..,~". Th~se de doctorat d'~tat, Universit~ Paris 7, 1976.Google ScholarGoogle Scholar
  10. JM88.Lalita A. Jategaonkar and John C. Mitchell. "ML with Extended Pattern Matching and Subtypes". In Proceedings of the 1988 Conference on LISP and Functional Programming. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. KTU88.A.J. Kfoury, J. Tiuryn and P. Urzyczyn. "On The Computational Power of Universally Polymorphic Recursion". In Proceedings of the Third Symposium on Logic In Computer Science, 1988.Google ScholarGoogle ScholarCross RefCross Ref
  12. Mit84.John C. Mitchell. "Coercion and Type Inference". In Proceedings of the Eleventh Annual Symposium on Principles Of Programming Languages, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Mit88.John C. Mitchell. "Polymorphic Type Inference". In Information and Computation, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Sta88.Ryan S tansifer. "Type inference with Subtypes". In Proceedings of the Fifteenth Annual Symposium on Principles of Programming Languages, San Diego, California, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Wand87.Mitchell Wand. "Complete type inference for simple objects". In Proceedings of the Second Symposium on Logic In Computer Science, 1987.Google ScholarGoogle Scholar
  16. Wand88.Mitchell Wand. "Corrigendum: Complete type inference for simple objects". In Proceedings of the Third Symposium on Logic In Computer Science, 1988.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Type checking records and variants in a natural extension of ML

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          POPL '89: Proceedings of the 16th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
          January 1989
          352 pages
          ISBN:0897912942
          DOI:10.1145/75277

          Copyright © 1989 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 3 January 1989

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • Article

          Acceptance Rates

          POPL '89 Paper Acceptance Rate30of191submissions,16%Overall Acceptance Rate824of4,130submissions,20%

          Upcoming Conference

          POPL '25

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader