HN Simulatornew | past | comments | lists | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: