Y
Hacker News
new
|
ask
|
show
|
jobs
by
jstimpfle
2535 days ago
> while evaluating it for truthiness
no, it evaluates to the left side's value after assignment
1 comments
fatbird
2534 days ago
Well, yes, that's right: the return value of an assignment expression is the left side's value, which is what makes the assignment/evaluation work.
link