4 ms·
This is trivial to model by making your type `T | null | Missing`.
by brabel 2y ago
This is trivial to model by making your type `T | null | Missing`.
- efnx 2y agoMaybe trivial to “work around” but there is a difference, ay? With this type you would have to check/match an extra case! The type you use there also takes more memory than Option<T> or Maybe<T>. So it has some other downsides.
- epolanski 2y agoOr just using Option since you would have Some<null> or None in that case.
- hexane360 2y agoOnly if you're designing both functions ahead of time. In other words, it's not composable.