mirror of
https://github.com/Noratrieb/blog.git
synced 2026-01-14 12:35:00 +01:00
transition
This commit is contained in:
parent
d2e858ddca
commit
8162ce0cff
6 changed files with 11 additions and 12 deletions
|
|
@ -1,8 +1,8 @@
|
|||
+++
|
||||
title = "Item Patterns And Struct Else"
|
||||
date = "2023-03-17"
|
||||
author = "Nilstrieb"
|
||||
authorTwitter = "@Nilstrieb"
|
||||
author = "Noratrieb"
|
||||
authorTwitter = "@Noratrieb"
|
||||
tags = ["rust", "language-design"]
|
||||
keywords = ["design"]
|
||||
description = "Bringing more expressiveness to our items"
|
||||
|
|
@ -95,7 +95,7 @@ This doesn't sound too bad. This is where the executed code resides. But it come
|
|||
|
||||
# Items and sadness
|
||||
|
||||
Items have a hard life. They are the parents of everything important. `struct`, `enum`, `const`, `mod`, `fn`, `union`, `global_asm` are all things we use daily, yet their grammar is very limited. ("free the items" was an alternative blog post title, although "freeing" generally remains a concern of [my C style guide](https://nilstrieb.github.io/nilstrieb-c-style-guide-edition-2/)).
|
||||
Items have a hard life. They are the parents of everything important. `struct`, `enum`, `const`, `mod`, `fn`, `union`, `global_asm` are all things we use daily, yet their grammar is very limited. ("free the items" was an alternative blog post title, although "freeing" generally remains a concern of [my C style guide](https://noratrieb.github.io/nilstrieb-c-style-guide-edition-2/)).
|
||||
|
||||
|
||||
For example, see the following code where we declare a few constants.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue