Re:Most common mistakes during interviews
by xorcist on Monday August 31, 2020 @03:41PM
(#24335202)
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.
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.