Newtype Index Pattern in Zig

4 pointsposted 11 hours ago
by birdculture

1 Comments

ThierryBuilds

2 hours ago

Nice Article. However I fail to understand how using the enum prevents the usage of the wrong index in a data structure. Can you explain further?