3 ms·
When could an extra "== true" or "== false" possibly make anything clearer? if not (x > 5) looks normal, if (x > 5) == false { .. ] is just confusing.
by xorcist 6y ago
When could an extra "== true" or "== false" possibly make anything clearer?
if not (x > 5)
looks normal,
if (x > 5) == false { .. ]
is just confusing.
Why would it matter if a function returned a boolean? It's either compared for truthiness, or the comparison for truthiness or compared for truthiness, even in the most dynamic languages.