Overview
ABSTRACT
Typing in programming languages rules out faults in computations due to operations using inadequate data. This verification may take place either at runtime (dynamic typing) or during compilation (static typing) and increases program security. Through abstraction, typing makes it possible to hide some implementation details in order to smooth the composition of different components of a program while allowing some flexibility through different kinds of polymorphism (parametric, ad hoc, subtyping). Each programming language has its own typing discipline that aims to ensure safety, abstraction, and flexibility of programs.
Read this article from a comprehensive knowledge base, updated and supplemented with articles reviewed by scientific committees.
Read the articleAUTHORS
-
Emmanuel CHAILLOUX: Professor, Sorbonne University
-
Romain DEMANGEON: Senior Lecturer, Sorbonne University
-
Michel MAUNY: Research Director, Inria
INTRODUCTION
In programming, a data type or, more simply, a type, is a set of data sharing properties and operations. For example, in the C language, the integer type int contains positive or negative numbers that can be represented on a fixed number of bits, which may depend on the processor architecture (often 32 or 64). These integers can be arguments or results of arithmetic operations. The OCaml language provides a bool type containing only the two truth values true and false, which can be tested (by a conditional if-then-else construction), or be the result of Boolean-valued functions.
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
KEYWORDS
Computer | programming | type checking | language
Typing programming languages
Article included in this offer
"Software technologies and System architectures"
(
227 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!