Type System - Types of Types

Types of Types

A type of types is a kind. Kinds appear explicitly in typeful programming, such as a type constructor in the Haskell language.

Types fall into several broad categories:

  • Primitive types – the simplest kind of type; e.g., integer and floating-point number
    • Boolean
    • Integral types – types of whole numbers; e.g., integers and natural numbers
    • Floating point types – types of numbers in floating-point representation
  • Reference types
  • Option types
    • Nullable types
  • Composite types – types composed of basic types; e.g., arrays or records.
    Abstract data types
  • Algebraic types
  • Subtype
  • Derived type
  • Object types; e.g., type variable
  • Partial type
  • Recursive type
  • Function types; e.g., binary functions
  • universally quantified types, such as parameterized types
  • existentially quantified types, such as modules
  • Refinement types – types that identify subsets of other types
  • Dependent types – types that depend on terms (values)
  • Ownership types – types that describe or constrain the structure of object-oriented systems
  • Pre-defined types provided for convenience in real-world applications, such as date, time and money.

Read more about this topic:  Type System

Famous quotes containing the words types of and/or types:

    Science is intimately integrated with the whole social structure and cultural tradition. They mutually support one other—only in certain types of society can science flourish, and conversely without a continuous and healthy development and application of science such a society cannot function properly.
    Talcott Parsons (1902–1979)

    Our major universities are now stuck with an army of pedestrian, toadying careerists, Fifties types who wave around Sixties banners to conceal their record of ruthless, beaverlike tunneling to the top.
    Camille Paglia (b. 1947)