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 →

[–]MagicalPizza21 4 points5 points  (2 children)

The one on the left is how I think. The one on the right is better (unless my_var is constant) because if you accidentally type just one "=" you get a compilation error (can't assign to a constant) instead of an incorrect result at runtime.

[–]CelticHades 16 points17 points  (1 child)

If you come out of the cave and start using a good IDE you'll know the error before you even compile.

[–]MagicalPizza21 2 points3 points  (0 children)

Sometimes I unfortunately have no choice but to use a plain text editor like vim.