by andi999 · 5y ago · 0 comments
- parsing command line arguments
- logging (loglevels, files, stdout/stderr, etc.)
- talking to a restful service via HTTP
Thanks in advance!
https://ziglearn.org/chapter-2/#iterators
I don't think that going further into parsing is in scope. std.log is something that definitely needs to be covered. HTTP, I'm not sure about as it requires a lot of extra machinery outside of the standard library and these things aren't mature yet.
https://ziglang.org/documentation/master/
And the (fairly new, and still a bit thin) std library documentation
https://ziglang.org/documentation/master/std/#std
...gives a good enough rundown to start writing real-world code if you're coming from another C-like programming language.
Zig's std lib documentation will keep getting better. In the meantime, the std lib code itself is so well written, it's worth a read, even coming from another language, and even if you have no intention to learn Zig. I found it easy to read and was impressed by the code structure and quality of the design.
Of course, that's not to suggest that code is documentation, but I've learned alot about improving my programming in general, just by reading Zig's std lib.