- Learning Zig by Karl Seguin: https://www.openmymind.net/learning_zig/
- Free project-based online book Introduction to Zig by Pedro Park: https://pedropark99.github.io/zig-book.
- Ziglings, almost working programs you need to fix: https://codeberg.org/ziglings/exercises
Examples target Zig 0.14.
Been some significant changes since then, not least to printing and formatting (see writergate).For now, I have a basic grasp of C#, a little Python, a little C++, and a little TypeScript. I also know Java to some extent, but honestly, what I mostly build is CRUD app assembly. To go deeper, I think I need to dig into a systems language. But I'm not sure whether to invest in Zig or Rust.
The builtins don’t even compile in these examples. This is 2 years out of date at least.
I'm sure this can be rationalized in some way, to either simplify parsing or solve some rare ambiguity, but I just don't see it.
I know this is a minor thing and can be considered as nitpicky, and I expect some friction with syntax when learning a new language, but I just can't stand things I see as gratuitous. Same with the forced use of _ = foo(.{}); to avoid compiling errors...
If you want a good source of zig learning material interactive and by examples please check out ziglings: https://codeberg.org/ziglings
It's writen and tested by humans, which is essential for learning purposes. It's listed in the official zig website, by the way.
This project is always up to date to the latest zig release.