Sobeston / zig.guide

Repo for https://zig.guide content. Get up to speed with Zig quickly.
https://zig.guide
MIT License
647 stars 170 forks source link

Should explanation of `if` expressions include more examples? #237

Open 4rc0s opened 4 months ago

4rc0s commented 4 months ago

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?