Comment

Comment by SkeuomorphicBee

In case anyone else is unfamiliar with Zig syntax and wondering: in Zig the .{ "somevalue"} represents an anonymous list literal [1], and .{.somename = "somevalue"} is an anonymous struct literal [2].

(A bit off topic rant, but Zig documentation is quite bad, it took me a lot more effort that it should to discover the facts above.)

[1] https://ziglang.org/documentation/master/#Anonymous-List-Lit...

[2] https://ziglang.org/documentation/master/#Anonymous-Struct-L...

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton