phantom type

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Noun[edit]

phantom type (plural phantom types)

  1. (computing theory) A parameterized type that does not depend on all of its type parameters.
    • 2004 July 31, Markus Mottl, "Phantom types" on caml-list[1]
      Phantom types not only allow you to capture constraints, which are proved by the compiler, they are also perfectly cheap computationally, because you don't have to check things at runtime all the time.