Every beginner programmer (of C-style languages) has to learn to deal with '=' (assignment) vs. '==' (comparison). Using
= in an
if clause is probably one of the most common early mistakes.
I'd like to think that I'm past that stage of my programming experience. However, about once a year I'll waste a couple of hours debugging to eventually notice the missing
if but my brain kept telling me to change the
eq. Must be the jet lag from Ireland. Yeah, the jet lag. That's it, that's the ticket.