4 ms·
I prefer the second one. Explicit is better than implicit.
by Cowen 13y ago
I prefer the second one.
Explicit is better than implicit.
- windsurfer 13y agoThe second what?
- Spiritus 13y agoThe second example: if var is not None: ...
- windsurfer 13y agoI was making a joke about being explicit versus implicit ;)
- pyre 13y agoIf explicit is always better than implicit, why is Python dynamically typed?
- lmm 13y agoBecause at the time it was originally written, it seemed impossible to write a statically typed language that was beautiful, or even readable. This has now proven to be false, and python is starting to add optional type annotations. It's not practical to introduce static typing more quickly - it would break too many existing programs.
- yxhuvud 13y agoSo why is it better to have to check for None but not having to check for midnight? The latter seems a lot less common and surprising.