Newtype Index Pattern in Zig

(matklad.github.io)

4 points | by birdculture 11 hours ago ago

1 comments

  • ThierryBuilds 3 hours ago 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?