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

In Zig you can return error unions (either a value or an error) from functions. Values can be null unions (either a value or null).

For example !?u64 is a type that's either an error, a null or a 64-bit unsigned integer.



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

Search: