News for hackers. Stuff that matters.
Re:I open sourced my game along with a tutorial on how to ma... by pansa2 on Monday July 06, 2020 @03:43AM (#23745606)
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”.

There are no comments on this comment yet.