3 ms·
Walrus is great but your example of nesting 3 deep looks just as terrible as the original example. As for being obsessed with None. I usually lean towards it w
by infecto 3y ago
Walrus is great but your example of nesting 3 deep looks just as terrible as the original example.
As for being obsessed with None. I usually lean towards it when no type has been provided like in the example. I think its appropriate when we are expecting it to be a None just to miss any traps further down the road. Just like typing in Python, you don't have to do it but I find it eliminates issues later on and makes it easier for others to read.