Re:Zig 0.4.0 Released
by daurnimator on Tuesday April 09, 2019 @03:28AM
(#19612527)
Looks like someone just filed the lack of samples as an issue: https://github.com/ziglang/zig/issues/2218
Re:Zig 0.4.0 Released
by manaskarekar on Tuesday April 09, 2019 @09:21AM
(#19614278)
My favorite website for an example of this functionality is: https://dlang.org/.
Succinct examples on a clean page, no fluff.
Yes, the homepage for Go is similar https://golang.org/
When you click "Download & Documentation" there's a link under the headline "master" to the long-form documentation which has some examples: https://ziglang.org/documentation/master/
Edit: also found a blog post with a nice introduction: https://andrewkelley.me/post/intro-to-zig.html and an examples directory: https://github.com/ziglang/zig/tree/master/example
Interesting to see how the language has evolved away from using "%" in the original Hello world:
Compared to the newer version :