namespace

package
v1.13.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package namespace provides namespace manipulation primitives.

Index

Constants

This section is empty.

Variables

View Source
var AddToRegistry = Builder.AddToRegistry

AddToRegistry registers all namespace primitives.

View Source
var Builder = registry.NewRegistryBuilder(addPrimitives)

Builder aggregates all namespace registration functions.

View Source
var Extension = registry.NewDescribedExtension("namespace",
	"Namespace management: environment creation, binding inspection.",
	AddToRegistry)

Extension is the namespace extension.

View Source
var PrimNamespaceQ = helpers.MakeTypePredicate(func(o values.Value) bool {
	_, ok := o.(*environment.Namespace)
	return ok
})

PrimNamespaceQ implements the (namespace?) predicate.

Functions

func PrimMakeNamespace

func PrimMakeNamespace(mc machine.CallContext) error

PrimMakeNamespace implements (make-namespace . import-specs). With no arguments, returns an empty namespace (kernel only). With import specs, pre-loads the specified libraries.

func PrimNamespaceBound

func PrimNamespaceBound(mc machine.CallContext) error

PrimNamespaceBound implements (namespace-bound? ns sym).

func PrimNamespaceBoundNames

func PrimNamespaceBoundNames(mc machine.CallContext) error

PrimNamespaceBoundNames implements (namespace-bound-names ns).

func PrimNamespaceDefine

func PrimNamespaceDefine(mc machine.CallContext) error

PrimNamespaceDefine implements (namespace-define! ns sym val).

func PrimNamespaceDerive

func PrimNamespaceDerive(mc machine.CallContext) error

PrimNamespaceDerive implements (namespace-derive ns).

func PrimNamespaceName

func PrimNamespaceName(mc machine.CallContext) error

PrimNamespaceName implements (namespace-name ns).

func PrimNamespaceRef

func PrimNamespaceRef(mc machine.CallContext) error

PrimNamespaceRef implements (namespace-ref ns sym [default]). With ParamCount: 2, IsVariadic: true:

Arg(0) = ns, Arg(1) = rest list (sym [default])

func PrimNamespaceRequire

func PrimNamespaceRequire(mc machine.CallContext) error

PrimNamespaceRequire implements (namespace-require ns lib-spec).

func PrimNamespaceUndefine

func PrimNamespaceUndefine(mc machine.CallContext) error

PrimNamespaceUndefine implements (namespace-undefine! ns sym).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL