3 ms·
I've seen quadruple negatives in Python: if not no_unavailable_items: ... else: ... unless on it's own is fine, but humans will misuse it
by hbrn 4y ago
I've seen quadruple negatives in Python:
if not no_unavailable_items:
...
else:
...
unless on it's own is fine, but humans will misuse it if you're not careful.
You can address it with code reviews/standards/linters and get the best of both worlds.