Comment by IshKebab
2 years ago
The alternative is `std::optional` which works exactly the same as Rust's `Option` (without the niche optimisation).
I'm not a C programmer but I imagine you could make something like `std::optional` in C using structs and macros and whatnot.
No comments yet
Contribute on Hacker News ↗