3 ms·
If you make the empty string falsy, surely you need to make all empty collections falsy? Python does this, which leads to people checking whether a list is emp
by pansa2 6y ago
If you make the empty string falsy, surely you need to make all empty collections falsy?
Python does this, which leads to people checking whether a list is empty using `if l` rather than `if len(l) > 0`. I‘d rather they stuck with “explicit is better than implicit”.