Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ErrorSets have been in the language for some time now. The syntax you are referencing is pretty outdated now too, when considering the pace of language changes here in Zig's pre-1.0 days.

https://ziglang.org/documentation/master/#Error-Set-Type



Ah that explains it: I was looking at the now-old https://andrewkelley.me/post/intro-to-zig.html#error-type




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: