Skip to Content
Programming Languages: Concepts and Implementation
book

Programming Languages: Concepts and Implementation

by Saverio Perugini
December 2021
Beginner
840 pages
47h 29m
English
Jones & Bartlett Learning
Content preview from Programming Languages: Concepts and Implementation

7.9 Type Inference

Explicit type declarations of values and variables help inform a static type system.For example, consider these explicit declarations of types for entities in ML:

A set of 10 code lines in M L consisting of explicit declarations.
Description

Types for values, variables, function parameters, and return types are similarly declared in Haskell:

A set of 16 code lines in Haskell for declaring the types for values, variables, function parameters, and return types.
Description

In some languages with first-class functions, especially statically typed languages, functions have types. Instead of ascribing a type to each individual parameter and the return type of a function, we can declare the type of the entire ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concepts and Semantics of Programming Languages 1

Concepts and Semantics of Programming Languages 1

Therese Hardin, Mathieu Jaume, Francois Pessaux, Veronique Viguie Donzeau-Gouge
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9781284222739