Hacker News new | ask | show | jobs
by toastercat 1047 days ago
I wanted to try learning Zig, but found the resources to be incomplete and lacking in examples. Rust (or Go) in comparison has a plethora of online resources with great examples.

I realize Zig is just 0.11, but wondering what resources people relied on to pick it up?

2 comments

I’ve been using the language reference [0] and also just browsing the standard library source code [1] for examples.

[0]:https://ziglang.org/documentation/0.11.0/

[1]:https://github.com/ziglang/zig/tree/master/lib/std

That's important: don't be afraid to look into the stdlib source code when questions arise. It's easy to read and stuff is easy to find, and it's also a great teacher.
Since go, this has been a really great way for me to judge a langage: how readable is the stdlib ?

If it's layer upon layer of unscrutable abstractions, then you know there's a high chance your codebase will end up looking the same after a few years.

The main available resources are listed here

https://ziglang.org/learn/