This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 11/4/2026.

Declarations

import std/declarations

Koru Standard Library: Declarations

declarations.kz · 1 tors · ~[comptime]

Koru Standard Library: Declarations Name-introducing constructs that are neither control flow nor type declarations. Today this is `const` — a module-level VALUE binding. It used to live in `control.kz`, but a value declaration is not control flow; and it is not a type, so it does not belong in `types.kz` either. It is its own thing: a declaration. This module is auto-imported via `index.kz` (like `control`), so the `const` keyword is globally available whenever any std/* module is imported.

const

keyworddeclaration koru_std/declarations.kz:42

~part targets koru_std/declarations.targets.kz

Koru Standard Library: the `targets` part of declarations.kz. Joined via `~part targets` in declarations.kz; merged into the module at load. The non-zig template bodies of `const` — same home-for-the-variants doctrine as control.targets.kz. The |zig original stays in declarations.kz beside the tor it spells.