Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()

<- View Parent
Glitchvid@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

if not x then … end is very common in Lua for similar purposes, very rarely do you see hard nil comparisons or calls to typeof (last time I did was for a serializer).

source
Sort:hotnewtop