News for hackers. Stuff that matters.
Re:Google Python Style Guide by Xelynega on Saturday February 11, 2023 @10:42AM (#34753308)
I think they're making the distinction between special cases and error cases.

An empty list could be valid(e.x. a search of users providing no results) so you still need to differentiate between "special cases that need special logic" and "bad input".

Lumping the two together in one `if` block makes any code less readable imo, because they're not the same thing.

There are no comments on this comment yet.