3 ms·
Except the article quite literally say None is an option, except <insert not great reasons>. That wasn't an assumption on my part. If the missing item wasn't e
by BoorishBears 4y ago
Except the article quite literally say None is an option, except <insert not great reasons>. That wasn't an assumption on my part.
If the missing item wasn't exceptional they would have just said that.
-
Also if even if it were exceptional, you'd still served extremely well by a Result type.
Instead of just guessing where the landmine is sitting the type system can help you. Python explicitly opted out of type hints for exceptions to avoid a Java-style "checked exceptions" world.