diff --git a/content/index.tree b/content/index.tree index de356fa..ad4993c 100644 --- a/content/index.tree +++ b/content/index.tree @@ -14,7 +14,7 @@ feel free to go back at any time by clicking here. - welcome! make yourself at home :ralsei_wave: % id = "01H8VWEHX501SNYQTE61WX7YJC" - - [_"owo, what's this?"_][page:kuroneko]{.secret} + - :folder: [_"owo, what's this?"_][page:kuroneko]{.secret} % id = "about" content.link = "about" @@ -26,7 +26,7 @@ feel free to go back at any time by clicking here. % id = "01H8V556P1GRAA3717VH3QJFMV" classes.branch_children = "index:hobby-corners" - - hobby corners + - :folder: hobby corners % id = "programming" content.link = "programming" @@ -85,7 +85,11 @@ feel free to go back at any time by clicking here. ``` % id = "01HFYZKREWE2AM61ZRW3R501H6" - - various thoughts + - :folder: /var + + % id = "short-thoughts" + content.link = "short-thoughts" + + ## [sh](https://www.youtube.com/watch?v=rFL2VOdb944){.secret}ort thoughts % id = "philosophy" content.link = "philosophy" diff --git a/content/short-thoughts.tree b/content/short-thoughts.tree new file mode 100644 index 0000000..b9f2961 --- /dev/null +++ b/content/short-thoughts.tree @@ -0,0 +1,19 @@ +%% title = "short thoughts" + +% 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.