Live data from Hacker News

Enum of Arrays

tigerbeetle.com

51–52 of 52 posts

Re: Enum of Arrays

#51

Earlier quoted context omitted.

I'll tell you my experience with Zig. I don't have any. I saw maybe Primagen talking about it and I see your post here. I watched 10 minutes of your vimeo video. I see it has 30k+ stars on github. So now I have to try to understand it in a nutshell. First like any language, I go to indeed.com and put in "Zig" to see if there are any jobs listed which use it. I don't see any. Then I click to https://ziglang.org/ and i…

I’d like to unsubscribe from your blog

I disagree. My blog is quite robust and optimal

Re: Enum of Arrays

#52
post #3

This is a somewhat, hmm, bilingual post. The enum in question here is what Zig calls a tagged union, while Rust calls it an enum, with what Zig calls an enum being the degenerate case where the tag is the only payload. I thought this would be about std.enum.EnumArray[0], an array of some T which is indexed by an enum. I've gotten a lot of mileage out of those as well. But it's about std.MultiArrayList[1], as used wit…

Since one of Zig's goal is to work alongside C, it makes sense to use the same terminology and to invent new ones that a C programmer could make sense of. I tried to learn rust at the beginning of the language and had a hard time trying to map my C knowledge onto Rust.
Post reply on HN