Tom Ritchford
Apr 25, 2023

--

NONONONONONONO. There are almost never any reasons to do this. It's not a more senior example.

Now, I checked my code, and there is one case where I do this which happens a few times.

There's a function with a parameter that has three possible values, True, False or None, where None means, "Deduce the value from the input" (which might be either False or True).

Even then, I agonized over doing it for a few seconds, but it was the only effective way to do it.

--

--

Responses (1)