3 ms·
C# took the nullable types route and it isn't the greatest experience since everything can be null regardless of the annotations. Null as a language concept is
by hypeatei 3y ago
C# took the nullable types route and it isn't the greatest experience since everything can be null regardless of the annotations.
Null as a language concept is the issue since it's inherently flawed.
- nicce 3y agoI would say that Rust does it pretty well with Option<>. You can define the logic when the Null should or can happen and you can avoid writing a lot of Error matching boilerplate, while still have a condition when something fails.
- hypeatei 3y agoYeah, Rust makes the handling of "None" values explicit, even if you want to ignore it with `unwrap()`