zig.guide icon indicating copy to clipboard operation
zig.guide copied to clipboard

Should explanation of `if` expressions include more examples?

Open 4rc0s opened this issue 1 year ago • 0 comments

In the page discussing if expressions (website/versioned_docs/version-0.12/01-language-basics/03-if.mdx), the explanation moves straight into testing before explaining the basic structure of if statement syntax.

Would it be helpful to a newcomer to start with examples of a basic if, then if-else, then if with optionals before moving to testing?

4rc0s avatar May 12 '24 14:05 4rc0s