Programming Search⌘K

Type-driven design

The use of types to make wrong programs hard to write: wrapper types, phantom types, smart constructors and units of measure.

Concepts

  • Units of measure

    A unit type attaches a unit, such as metres or seconds, to a number. The compiler or the library then rejects sums of different units and works out the unit of each product and quotient.

    core