Skip to main content

Module value

Module value 

Source
Expand description

Runtime value model — shared across all COMMON primitives.

Mirrors the TS/Python reference model: int = checked i64, float = IEEE754 f64 (NaN/±Inf are Failures at the boundary), string, bool, null, arr, obj. The distinction between Int and Float is normative: int 1 != float 1.0.

Enums§

Value
A runtime value. Object key ordering is preserved via a Vec of pairs so that canonical serialization can apply an explicit code-point sort (a BTreeMap would impose String Ord which — while it happens to equal code-point order — we keep explicit for clarity and insertion-order retention where required).

Functions§

deep_equals
Deep structural equality with strict int/float type distinction (PROTOCOL §4.1).