Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mapimopi
· 11y ago · 0 comments
Why not just
if (i % 3 != 0 && i % 5 != 0)
this extra boolean variable out?
Comments
[–]
ivanche
11y ago
I like to think it's matter of readability. "if (pureNumber)" vs. "if (i % 3 != 0 && i % 5 != 0)". Also, one extra variable vs. reversal of already mentioned condition. Yes, we're splitting hair here :)