HEXOLANGGitHub ↗

Scopes & closures

Environments, scope resolution and closure capture.

Runtime environments store variable and function bindings and reference enclosing environments. This supports local and global scopes, closures, bound methods, and module environments.

Closures can retain the context they were created in, allowing captured values to remain available after the outer call returns.

Last updated 2026-11-21Suggest an edit ↗