Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Comevius
on Feb 20, 2022
|
parent
|
context
|
favorite
| on:
Returning Values and Errors
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:
For example !?u64 is a type that's either an error, a null or a 64-bit unsigned integer.