Article | REF: H3320 V1

Typing in programming language

Authors: Emmanuel CHAILLOUX, Romain DEMANGEON, Michel MAUNY

Publication date: May 10, 2018

You do not have access to this resource.
Click here to request your free trial access!

Already subscribed? Log in!


Français

1. A few definitions

Types can be divided into two categories. The so-called primitive types are those of basic data directly supplied by the machine, such as the integers or Booleans mentioned above. Compound types, on the other hand, are constructed from one or more types. The most classic examples of compound types are container types, such as arrays or lists, but products (e.g. records) and unions of several types are also compound types. C structures are examples of product types, and algebraic types, which can be defined in OCaml, correspond to discriminated unions. Elements such as objects can also be seen as belonging to compound types, by classifying objects exhibiting the same methods within the same type. Belonging to a type is often not exclusive, especially when it comes to objects: if we consider that having at least one specific set of methods is equivalent to belonging to a type T of objects,...

You do not have access to this resource.

Exclusive to subscribers. 97% yet to be discovered!

You do not have access to this resource.
Click here to request your free trial access!

Already subscribed? Log in!


The Ultimate Scientific and Technical Reference

A Comprehensive Knowledge Base, with over 1,200 authors and 100 scientific advisors
+ More than 10,000 articles and 1,000 how-to sheets, over 800 new or updated articles every year
From design to prototyping, right through to industrialization, the reference for securing the development of your industrial projects

This article is included in

Software technologies and System architectures

This offer includes:

Knowledge Base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

Practical Path

Operational and didactic, to guarantee the acquisition of transversal skills

Doc & Quiz

Interactive articles with quizzes, for constructive reading

Subscribe now!

Ongoing reading
A few definitions