Files
Decodal/doc/manual/source/language/value/index.md
T

836 B

Value

This chapter defines the kinds of values handled by the language.

Primitive types are built-in constraints that values must satisfy, rather than ordinary data values.

name = String;
retry = Int default 3;
ratio = Float;
enable = Bool default true;
tags = [...String];

The primitive types are String, Int, Float, and Bool. Unknown is not a primitive type; it is the top abstract range containing every Decodal value. An Unknown without a concrete value or default cannot be materialized. An array is not a primitive type and is described as [...T] with a required element constraint. Links to each type specification are collected in the manual contents.

See Constraints and Defaults for details about primitive types and constraint composition.