2 ms·
No, you should not. Checking for None is relevant when you care about the case where it's important. But that doesn't mean every case is one. In the example her
by PurpleRamen 3y ago
No, you should not. Checking for None is relevant when you care about the case where it's important. But that doesn't mean every case is one. In the example here, all we care is if we can do something, and everything else doesn't matter. Which is also the reason why I could shortened credit from two checks to one.