aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2024-02-09 16:36:09 +0100
committerLuuk de Gram <luuk@degram.dev>2024-02-29 15:24:07 +0100
commit5ef832133895fd69fc8378463b86759eaab6913a (patch)
tree08bc27cd8f20de4c928ca0bdc411b6c8d59be465 /lib/std
parentc99ef23862573269ae4052bd2236f9803f9e36a2 (diff)
downloadzig-5ef832133895fd69fc8378463b86759eaab6913a.tar.gz
zig-5ef832133895fd69fc8378463b86759eaab6913a.zip
wasm: make symbol indexes a non-exhaustive enum
This introduces some type safety so we cannot accidently give an atom index as a symbol index. This also means we do not have to store any optionals and therefore allow for memory optimizations. Lastly, we can now always simply access the symbol index of an atom, rather than having to call `getSymbolIndex` as it is easy to forget.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions