News for hackers. Stuff that matters.
Re:Yoda conditions by RKearney on Sunday March 09, 2014 @10:01PM (#7370940)
I use Xcode for development and it already warns against assignment within conditions[0]. gcc also warns against it[1]. Python just errors out all together[2]. I don't have my Windows instance up with Visual Studio but I'm fairly certain that it too notifies you of assignments within conditions.

So the question is, why would you sacrifice readability to help solve a non-issue?

[0]https://www.dropbox.com/s/sjtefd55mwigq3y/Screenshot%202014-...

[1]https://www.dropbox.com/s/yx01tdeykpkespv/Screenshot%202014-...

[2]https://www.dropbox.com/s/ex9dskab82n52qf/Screenshot%202014-...

There are no comments on this comment yet.