Jun-22-2018, 08:16 PM
If a zero-speed should be disallowed then that can be useful, but
is None
is semantically different from checking falsiness. The normal idiom for default values in function definition is to check for None, unless you have a good reason to use falsiness (e.g. in the difference between accepting any empty collection or not).