Hacker News new | past | comments | ask | show | jobs | submit login

> while evaluating it for truthiness

no, it evaluates to the left side's value after assignment




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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: