Class TemporaryType

  • All Implemented Interfaces:
    NamedType, Type

    public class TemporaryType
    extends DataType
    Placeholder for a type that is being recursively defined.

    For example, while defining datatype "list" as follows,

    datatype 'a list = NIL | CONS of ('a, 'a list)

    we define a temporary type "list", it is used in CONS, and later we convert it to the real data type "list".