3 ms·
Maybe a good tip for beginners who confuse = and ==, but I don't recall ever making this error, and I've written a ton of code.
by psyklic 17y ago
Maybe a good tip for beginners who confuse = and ==, but I don't recall ever making this error, and I've written a ton of code.
- elbenshira 17y agoI agree. I saw this tip a long time ago and tried it for a bit, but realized that I don't need it because I never put a "=" in place of a "==".
- JeremyStein 17y agoThen you weren't writing that code in C.
- appathy 17y agoI've written a lot of code in C and never run into this error. And I never put the constant on the left.
- regularfry 17y agoI have also written a ton of code, and the times I have made this error have been sufficiently annoying that I've forced myself to reverse the comparisons.