I just looked up a Hello World program from the Zig Wikipedia article: const std = @import("std"); const File = std.Io.File; pub fn main(init: std.process.Init) !void { _ = try File.stdout().writeStreamingAll(init.io, "Hello, World!\n"); } That's a lot to follow, just to output a plan-text message, especially after this line: "The primary goal of Zig is to be a better solution to the sorts of tasks that are currently…
Arguably this is the more beginner friendly version, this prints to stderr though:
hello.zig:
const print = @import("std").debug.print;
pub fn main() void {
print("Hello World!\n", .{});
}
...and then zig run hello.zig