Hacker News new | past | comments | ask | show | jobs | submit login
Reading a JSON Config in Zig (openmymind.net)
2 points by ck45 5 months ago | hide | past | favorite | 2 comments



I 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.


I'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.o...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: