refactor: use contextual empty slice literals

This commit is contained in:
2026-10-25 01:21:02 +02:00
parent 678bb2583b
commit 2761c77182
7 changed files with 57 additions and 54 deletions
+2
View File
@@ -10,6 +10,8 @@ build Honey from this directory:
bro build
```
the bootstrap must support contextual `&[]` literals for mutable slices; collection initialization and reset use these literals instead of a dedicated empty-slice helper. if the installed `bro` predates that feature, use `../brolang/build/brolang build` after rebuilding Bro. zero-sized elements with nonzero logical lengths still use the memory module's specialized storage handling.
run a source file with the interpreter:
```sh