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

I/O

~import std/io

Koru Standard Library: I/O

io.kz · 17 tors · ~[comptime]· ~[runtime]

Koru Standard Library: I/O Basic input/output operations for Koru programs Finally! After achieving consciousness (metacircular compilation), we can now print "Hello, World!"

Phantom lifecycles

Derived from the phantom labels in the declarations below — state! issues an obligation the compiler will chase, !state discharges it, a bare state holds it without moving it. Nothing here is hand-drawn.

string 1 state allocated!

print

keywordcomptimetransform koru_std/io.kz:43

read-lines

aspirational koru_std/io.kz:161

read-stdin

<allocated!> koru_std/io.kz:197

read-file

<allocated!> koru_std/io.kz:221

free

<!allocated> koru_std/io.kz:250

print.ln

keywordcomptimetransform koru_std/io.kz:282

print.impl

norun koru_std/io.kz:291

eprint.ln

keywordcomptimetransform koru_std/io.kz:298

eprint

keywordcomptimetransform koru_std/io.kz:307

print.blk

comptimetransform koru_std/io.kz:1023

print.blk.impl

norun koru_std/io.kz:1032