A few definitions
Typing in programming language
Article REF: H3320 V1
A few definitions
Typing in programming language

Authors : Emmanuel CHAILLOUX, Romain DEMANGEON, Michel MAUNY

Publication date: May 10, 2018 | Lire en français

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

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.
Logo Techniques de l'Ingenieur

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?


Article included in this offer

"Software technologies and System architectures"

( 227 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details