News for hackers. Stuff that matters.
Re:Koa – Next-generation web framework for Node.js by ahoge on Thursday December 19, 2013 @07:39PM (#6939094)
In most environments, writing something like `if (x = 5)` will generate a warning.

E.g. if you use JSHint, you'd get:

"Expected a conditional expression and instead saw an assignment."

Nowadays, there usually isn't any benefit in using yoda conditions.

There are no comments on this comment yet.