Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
smarinov
on Nov 2, 2016
|
parent
|
context
|
favorite
| on:
Microsoft Concept Graph
You probably mean that it will
always
seek food since the assignment evaluates to 'true' when it's successful (which is usually the case).
TeMPOraL
on Nov 2, 2016
|
next
[–]
In what language? In all that I know, assignment evaluates to the value that was assigned (that is, if it evaluates to anything at all). Also in most languages that look like C, 0 evaluates to false. Therefore it will
never
seek food.
saynsedit
on Nov 2, 2016
|
prev
[–]
Usually the case as in usually never the case.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: