2 ms·
"Simplicity" is not measured in terms of key presses or characters. The "if timeval:" case may contain fewer characters, but it's less explicit. Being less exp
by Pacabel 13y ago
"Simplicity" is not measured in terms of key presses or characters.
The "if timeval:" case may contain fewer characters, but it's less explicit. Being less explicit opens it up to greater ambiguity. Ambiguity is a form of complexity. Complexity is the opposite of simplicity.
The explicit "is not None" check may require more typing, but it's far more explicit and exact. That means it's much less ambiguous, and thus less complex, and thus exhibits greater simplicity.