Ion Fusion Documentation
Release 0.38a1-SNAPSHOT (2026-04-16T19:45:37.790Z)

Module /fusion/namespace

Collections of top-level variables.

A namespace is a set of top-level variables, both name-to-variable bindings and variable-to-value storage. Every module has its own namespace holding its top-level definitions and imported bindings. Likewise, every script is evaluated within the context of some namespace.

Namespaces are typically used for dynamic evaluation.

current_namespace procedure
(current_namespace)

Returns the current namespace, the default context for eval and similar dynamic evaluation features. This value has no direct relationship to the namespace lexically enclosing the parameter call.

This is a parameter, so the value is thread-local and dynamically scoped via parameterize.

make_namespace_with_language procedure
(make_namespace_with_language language)

Makes a fresh namespace with the bindings of language, which must be a string holding an absolute module path.