refactor: use grouped matches for parser token membership

This commit is contained in:
2026-10-30 12:39:18 +01:00
parent e90d4f0829
commit b1cc97cc77
2 changed files with 13 additions and 20 deletions
+1
View File
@@ -44,6 +44,7 @@ while (
```
- use early returns for terminal cases so the main path stays shallow.
- use grouped `match` arms for boolean enum membership; reserve compile-time enum maps for enum-to-value data mappings.
- register `defer` cleanup immediately after acquiring a resource. use `errdefer` for cleanup needed only until ownership is transferred successfully.
## allocation and ownership