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

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.