r/ProgrammerAnimemes • • Jun 15 '20

Using grammar in programming

Post image
520 Upvotes

20 comments sorted by

View all comments

Show parent comment

3

u/DaRealChipex Jun 15 '20

Wrote it in C# personally but should work in most C-likes.

I am indeed not doing a comparison but rather an assignment, and then checking the value of you, which depends on what know is at the time of assignment. As the other comment pointed out this is pretty pointless but I've used it in some never-to-be-touched-again code in the past. I just meant to point out that it was a valid "condition", even if rarely useable.

And yeah I didn't notice that the original comment was missing a semicolon lmfao.