4 ms·
"The alternative is every single function has to return a boolean" Rust: Return Some(value) or None
by tcfhgj 2y ago
"The alternative is every single function has to return a boolean"
Rust:
Return Some(value) or None
- CJefferson 2y agoI tried that, the problem was some functions wanted to return an Option, then you end up with Option<Option<T>>, which is technically fine, but I find a bit mind bending.