Version: dev

closed_function_names

Stable function · Expressions

Tier: stable · Kind: function · Topic: Expressions

JuliaTypeScriptPythonRustGo
closed_function_namesclosedFunctionNamesnot exportedclosed_function_namesClosedFunctionNames

Julia

closed_function_names()
closed_function_names() -> Set{String}

Return the v0.3.0 closed function set. Bindings MUST reject any fn-op name not in this set. The set is intentionally narrow; new entries require a spec rev (esm-spec §9.1).

Source

TypeScript

function closedFunctionNames(): readonly string[]

Names that bindings MUST recognize (derived from the dispatch table keys).

A FUNCTION, matching Julia’s closed_function_names(), Rust’s closed_function_names() and Go’s ClosedFunctionNames() — API_SPEC.md §8 item 4. TypeScript alone exposed this as a constant array, so a caller writing binding-agnostic code had to special-case it.

Source

Python

Python does not export this function.

Rust

pub fn closed_function_names() -> &'static HashSet<String>

The closed function set. Bindings MUST reject any fn-op name not in this set (esm-spec §9.1). Derived from CLOSED_FUNCTIONS.

Source · Rust docs

Go

func ClosedFunctionNames() []string

ClosedFunctionNames returns the v0.3.0 closed function set as a sorted slice. Useful for error messages and round-trip validation tests.

Source · Go docs