News for hackers. Stuff that matters.
Re:Strict Python function parameters by cabalamat on Sunday January 23, 2022 @11:38AM (#30047550)
> I hate having to have a block of `if bar is None` at the top of my functions.

Doing it the if-statement way is the clearest and easiest for other programmers to follow, therefore it is the best way.

There are no comments on this comment yet.