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

Types

~import std/types

Koru Standard Library: Type Declarations

types.kz · 6 tors · ~[comptime]· ~[runtime]

Koru Standard Library: Type Declarations · 16 more lines
Koru Standard Library: Type Declarations This module is the SURVIVING slice of the old type-mint surface. The mint verbs (`std/types:struct`, `:type`, `:enum`, `:union`) were retired 2026-08-23: a construct whose only demand was its own test cluster was redundant with the language spine (frag-type-system-design, fourth dissolution). What remains: - `fields-of(T)` — comptime traversal SOURCE over an EXISTING type's fields; consumed by std/constructor's struct terminal. - Nominal primitives — `string(EmailAddress)`, `int(UserId)`, `float(Temperature)`, `bool(IsActive)` — distinct named wrappers. The declaration front door going forward is `~std/types:proto(name)` (layout-silent registry entries), landing with std/list as its first consumer. Until then std/types intentionally declares NO composite types.

fields-of

comptime koru_std/types.kz:32

proto

keywordcomptimetransform koru_std/types.kz:74

string

keywordcomptimetransform koru_std/types.kz:181

int

keywordcomptimetransform koru_std/types.kz:232

float

keywordcomptimetransform koru_std/types.kz:281

bool

keywordcomptimetransform koru_std/types.kz:330