4 ms·
Look at what happens if you miss a = (“x” = x) //Throws a compile error vs (x = “x”) //x is set to "x" Edit: sorry about the quadruple submit, don't
by epochwolf 16y ago
Look at what happens if you miss a =
(“x” = x) //Throws a compile error
vs
(x = “x”) //x is set to "x"
Edit: sorry about the quadruple submit, don't know what happened there
- latch 16y agoRight..not a problem in Java/C# and no compiler benefit either way in a dynamic language. The "x".equals(x) might be slightly more relevant (no fear of x being null). Cheers.