Skip to main content

Standard ML Type Inference

  • Chapter
  • First Online:
  • 251k Accesses

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

Abstract

Many language implementations, like C++ and Java, check the types of values and operations to be sure each operation is supported for the types of its operands. An important feature of Standard ML is the type inference system which is somewhat like the type checkers of C++ and Java, but a bit more powerful. A type checker checks the types written by the programmer to be sure each type declaration is consistent with the operations being performed, values being passed to functions, and the values being returned. Compilers for Java and C++ even infer the types of some expressions when polymorphic operators are used. For instance, the addition operator has multiple result types depending on the types of its operands.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kent D. Lee .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Lee, K.D. (2017). Standard ML Type Inference. In: Foundations of Programming Languages. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-70790-7_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-70790-7_8

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-70789-1

  • Online ISBN: 978-3-319-70790-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics