3 ms·
While the standard library documentation is non existent, using grep on it and just reading through it is very easy, compared to almost any other language I hav
by typon 5y ago
While the standard library documentation is non existent, using grep on it and just reading through it is very easy, compared to almost any other language I have used.
I would actually say this is preferred: it's early days, so the documentation can't go out of sync because it doesn't exist, and library maintainers are incentivized to write understandable code, which most people who are getting into the language are forced to read, creating a consensus of what is considered idiomatic in the community.
- kristoff_it 5y agoYep, and we also encourage this, if you open the (incomplete, buggy) autogenerated doc for the standard library, you get a banner at the top that links you to a wiki page that explains how the standard library is structured. https://github.com/ziglang/zig/wiki/How-to-read-the-standard-library-source-code https://github.com/ziglang/zig/wiki/How-to-read-the-standard...
- zppln 5y agoI've also found the tests for the standard library pretty useful when digging around trying to figure out how to use stuff.