3 ms·
Python (with mypy) has strict optional on as default and is the most widely used language, according to the latest stackoverflow ranking. Assuming you use mypy
by Too 4y ago
Python (with mypy) has strict optional on as default and is the most widely used language, according to the latest stackoverflow ranking. Assuming you use mypy of course, which probably takes the usage rate down a factor of 100x but still.. ;)
It makes you actually have to consider scenarios where a variable can be none or not and try to push the validation up closer to where it entered the system.