Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CamperBob
on Jan 8, 2011
|
parent
|
context
|
favorite
| on:
Which one will execute faster, if(flag==0) or if(0...
It's not the choice of keyword that (should) trigger the warning. It's the simple fact that an expression that evaluates to boolean contains an '='. This potential error is trivial for any compiler to flag.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: