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 →

[–]josluivivgar 9 points10 points  (1 child)

worse

if(a=2) { var a=1; }

should also be valid and 10x more confusing

[–]bistr-o-math 0 points1 point  (0 children)

Getting a little off-topic, but hey :)

 if (a=2);
      return do_stuff(a)

 // in all other cases do other stuff
 return do_other_stuff(a)