Debian Codegraph @

doc/guide/src/PhantomType.adoc

raw
1 = PhantomType
2
3 A phantom type is a type that has no run-time representation, but is
4 used to force the type checker to ensure invariants at compile time.
5 This is done by augmenting a type with additional arguments (phantom
6 type variables) and expressing constraints by choosing phantom types
7 to stand for the phantom types in the types of values.
8
9 == Also see
10
11 * <<References#Blume01,Blume01>>
12 ** dimensions
13 ** C type system
14 * <<References#FluetPucella06,FluetPucella06>>
15 ** subtyping
16 * socket module in <<BasisLibrary#,Basis Library>>