not to be confused with the Minecraft technical update I'm moving about the pages to be have a more flat, less nested structure. I feel like that'll improve URLs a lot, making them more readable than ever. over the years I've learned that flatter is better, and that tagging is generally a much more effective way of organising things. this doesn't get rid of categories entirely, as I think having the category makes the URL much a bit more readable in the end. my current vision does include a concept of "major categories" either way.
20 lines
521 B
Text
20 lines
521 B
Text
%% title = "`?` is not the only option"
|
|
|
|
% id = "01J4J6400Q4MWF2QPGX3P9Q2WQ"
|
|
- if there's one thing I learned from Go...
|
|
|
|
```rust
|
|
let mut list = WalkList::new(args);
|
|
|
|
let condition = list.expect_arg(c, src, "missing `if` condition");
|
|
let if_true = list.expect_arg(c, src, "missing `if` true branch");
|
|
let if_false = list.expect_arg(c, src, "missing `if` false branch");
|
|
list.expect_nil(c, src, "extra arguments after `if` false branch");
|
|
|
|
if !list.ok {
|
|
return Ok(());
|
|
}
|
|
```
|
|
|
|
...it's that `?` is not the only option.
|
|
|