Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sigjuice
· 10y ago · 0 comments
Why not be absolutely sure?
if (0 != (0 != (i = getValue())))
Comments
[–]
ifdefdebug
10y ago
I am aware of the redundancy, this was about the new warnings. If you can't do if(i = getValue()) without warning, I was wondering if assignments as a part of a larger expression would pass.