skip to main content
10.1145/62678.62702acmconferencesArticle/Chapter ViewAbstractPublication PageslfpConference Proceedingsconference-collections
Article
Free Access

ML with extended pattern matching and subtypes

Published:01 January 1988Publication History

ABSTRACT

We extend a fragment of the programming language Standard ML by incorporating a more general form of record pattern matching and providing for user-declared subtypes. Together, these two enhancements may be used to support a restricted object-oriented programming style. In keeping with the framework of Standard ML, we present typing rules for the language, and develop an efficient type inference algorithm. We prove that the algorithm is sound with respect to the typing rules, and that it infers a most general typing for every typable expression.

References

  1. BL88.K. Bruce and G. Longo. A modest, model of records, inheritance and bounded quantification. In Third IEEE Syrup. Logic in Computer Science, page (to appear), 1988.Google ScholarGoogle Scholar
  2. Car84.L. Cardelli. A semantics of multiple inheritance. In Proc. Int. Syrup. on Semantics of Dat~ Typ~. $ophia-A.~ipolis (F~a.c~), Springer LNCS 173, pages 51-68, June 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Coo87.W. Cook. A self-ish model of inheritance. Manuscript, 1987.Google ScholarGoogle Scholar
  4. CW85.L. Cardelli and P. Wegner. On understanding types, data abstraction, and polymorphism. Computing Surveys, 17(4):471-522, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. GR83.A. Goldberg and D. Robson. Smalltalk-80: The language and its implementation. Addison Wesley, 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Mil85.R. Milner. The stemdard ml core language. Polymorphism, 2(2), 1985. 28 pages. An earlier version appeared in Proc. 1984 ACM Syrup. on Lisp and Functional Programming.Google ScholarGoogle Scholar
  7. Mit84.J.C. Mitchell. Coercion and type inference (summary). In Proc. 11-th A CM Syrup. on Principles of Programming Languages, pages 175-185, January 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Rey80.J.C. Reynolds. Using Category Theory to Design Implicit Conversions and Generic Operators, pages 211-2580. Springer-Verlag Lecture Notes in Computer Science, Vol. 94, 1980. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Rob65.J.A. Robinson. A machine orient~ed logic based on the resolution principle. JACM, 12(1):23-41, 1965. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Sta88.P~. $ta.nsifer. Type inference with subtypes. In Proc. 15-th A CM Syrup. on Priciples of Programming Languages, pages 88-97, January 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Str86.B. Stroustrop. The C++ Programming Language. Addison-Wesley, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Wan87.M. Wand. Complete type inference for simple objects. In Proc. 2-nd I~EE Syrup. on Logic in Computer Science, pages 37-44, 1987.Google ScholarGoogle Scholar

Index Terms

  1. ML with extended pattern matching and subtypes

      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
        LFP '88: Proceedings of the 1988 ACM conference on LISP and functional programming
        January 1988
        351 pages
        ISBN:089791273X
        DOI:10.1145/62678

        Copyright © 1988 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: 1 January 1988

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate30of109submissions,28%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader