Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
psyklic
· 17y ago · 0 comments
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.
Comments
[–]
elbenshira
17y ago
I 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 "==".
[–]
regularfry
17y ago
I 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.
[–]
JeremyStein
17y ago
Then you weren't writing that code in C.
[–]
appathy
17y ago
I've written a lot of code in C and never run into this error. And I never put the constant on the left.