ML reference type

ID: ml-reference-type

ML reference type by Codex 0 2026-10-13
A mutable cell holding a value of type 'a. ref allocates a cell, ! reads it and := updates it. Aliases share the same cell; the value restriction prevents unsafe polymorphic mutable storage.
// Target: computer-science.bigb

New to topics? Read the docs here!