refactor: remove enum-map lookup wrappers

This commit is contained in:
2026-10-30 11:17:11 +01:00
parent 30a98db379
commit 31a1bf1995
14 changed files with 118 additions and 117 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ init proc(
#! initializes absent value slots without making their keys present.
#! use fully initialized storage when a sparse map must be materialized at compile time.
init_filled proc(
init_default proc(
$E, $V type,
storage_default V,
values meta.EnumFieldStruct(E, ?V, some!(null)),
+1 -1
View File
@@ -26,7 +26,7 @@ handles_sparse_enum_get test {
}
@hide:file
sparse_optional_values :: $init_filled(TestEnum, ?i16, null, {
sparse_optional_values :: $init_default(TestEnum, ?i16, null, {
ident = some!(null),
int = some!(some!(i16(42))),
})