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

Control

~import std/control

Koru Standard Library: Control Flow

control.kz · 3 tors · ~[comptime]

Koru Standard Library: Control Flow Provides if for zero-overhead conditional branching ARCHITECTURE: if is a pure comptime transform that generates inline Zig code. - if(expr) | then |> ... | else |> ... becomes a literal if/else statement - No function call overhead, full access to outer scope - Uses template_utils.lookupTemplate + interpolate for metaprogramming!