Other type systems
Typing in programming language
Article REF: H3320 V1
Other type systems
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?

5. Other type systems

Dynamic typing, by checking that the arguments passed to a function are of the correct type, ensures that the operations performed are carried out on the correct type of data. To achieve this, tests on the data passed are carried out before a function is called, or directly in its code. If one of these type conformity tests fails, this is signalled either by passing a specific value to the caller, or by triggering an exception at that point in the program. The result is a software reliability guarantee that calculations will not be performed on data that does not conform to expectations.

Static typing eliminates typing tests at runtime by analyzing the program's source code to check that it conforms to the type system of the language in which the program is written. If this is not the case, the program will not be compiled and therefore cannot be executed. If this...

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