Skip to main content

Module env

Module env 

Source
Expand description

Scoped environment โ€” parent-pointer tree of bindings.

Cheap to clone (Arc-backed). Extension is non-destructive: extend returns a new Env whose parent is self. That keeps closures immutable and removes a class of aliasing bugs that plague mutable interpreters.

Structsยง

Env