4 ms·
Doesn't this lead to an unstuctured data problem?
by edoceo 4mo ago
Doesn't this lead to an unstuctured data problem?
- autarch 4mo agoWe've done the same thing in my job. I think what they're saying is that rather than passing/returning `SomeStruct` and having it maybe be optional, they either pass `SomeStruct`, with a rule that it's never nil, _or_ they pass `Option[*SomeStruct]`. Then anything that deals with optional types is forced to explicitly check. This is exactly how Rust works, except there it's built into the compiler, and there's no such as nil in most code.
- liampulles 4mo agoIt's very similar to Optional types in Java.