Back to Feed
Link github

❌ PR: Include Hello World Example

Repository: ziglang/zig
Moved to Codeberg


Yea I know, a README PR....

Anyways, I think this is a really good addition to the README so people can actually see what the code looks like.

I did try to backup my argument by looking at other languages hosted on GitHub but all the ones I use don't show a code snippet of the language neither.

I literally went on YouTube to find a hello world example just to get up and running since this is my first day using Zig. (I'm biased to use video to learn because I have poor reading comprehension)

I do feel like this is a good example that includes an import statement, a function that includes access control, the fn keyword, returns an error, dot syntax, the try keyword, string interpolation, and printing. (This snippet was copied directly from the documentation)

I understand the urge to shoot down a PR to the README, but I would prefer to talk about this if the Zig team doesn't see a benefit from the DX perspective.

Visit github.com