3 ms·
Reading a JSON Config in Zig
- ssahoo 2y agoI am really baffled that zig tried to reinvent json with zon file format. The syntax is full of dots (zig struct like), very ugly. I think its a missed opportunity to woo people who are familiar with js land. Regardless support for json file should be first class in any modern language IMO.
- garbagepatch 2y agoI'm sure they have first class support for json, and if they don't you can easily use a C library. The code snippet in their home page years ago was how to read a json file for configuration... at compile time! https://web.archive.org/web/20210301154515/https://ziglang.org/ https://web.archive.org/web/20210301154515/https://ziglang.o...