the flattening

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.
This commit is contained in:
りき萌 2025-01-14 23:36:09 +01:00
parent 20e29e3b2c
commit 39a6155bdc
33 changed files with 63 additions and 120 deletions

View file

@ -0,0 +1,20 @@
%% 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.