Skip to content

Comment on Zig’s Io.Threaded is neatparent

Comments

std.debug.print is, as its name suggests, for debug output, not for program output.

In Zig, you create a buffered writer for the stdout file handle, write hello world to the buffer, and then flush it. It exposes what's actually happening underneath.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.