在Myeclipse 6.0的某个JS文件中看到这样的警告:Using ++ and -- is considered harmfulphp
有点莫名其妙~html
参考:http://www.myeclipseide.com/PNphpBB2-viewtopic-t-10602.html安全
http://yehudakatz.com/2010/08/21/using-considered-harmful-or-whats-wrong-with/eclipse
其中有我的说的比较在理:ide
"The ++ (post-increment) and -- (post-decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second only to faulty architecture in enabling to viruses and other security menaces." This is a really, really dumb warning to have on by default. ++ and -- can be used to make tricky code. I almost invariably only use them in loop increments where they are not dangerous AT ALL. Someone's strange idea that they are so dangerous they should be flagged as warnings any time they are used anywhere is a very poor default.引用:++和--操做容易产生错误的代码或者一些微妙而难以处理的情形。这些有缺陷的代码容易形成程序上的漏洞或一些其余安全性的问题。
Jacob(jacob@well.com)表示很无语~并且认为这样写一点问题都没有,但总有一些人说这是不合法的,应该加上警告不管什么时候使用。oop