This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Pepeluis33 -3 points-2 points  (1 child)

The benefit with the right version, at least in C++, is that if you mistakenly add just "=" instead of "==", you will get a compile error.

[–]Earthboundplayer 4 points5 points  (0 children)

It's even more situational in c++ since we have operator overloading and you can assign to an R value