Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One addendum. As of JavaScript 1.7 there is yet another way of declaring a variable. It is called let, and makes var work the way it should have worked all along.

Of course you can't rely on people having JavaScript 1.7 in their browser. And even if their browser supports it, if the script tag is not declared correctly, YOUR JavaScript won't be understood to be JavaScript 1.7. So people avoid JavaScript 1.7 features.

I now return you to your regularly scheduled flame war.



+1. I think that I edited out a sentence where Nickieben used let as an example of JavaScript people agreeing that var was feciform.


ok, this is the second hit on google for "feciform" (third is "vomiting feciform matter" while first is "FECI form"). is this really a word? if not, what on earth did you mean?


Something taking on the form of feces ;-)


I would guess that this nonsense word means "poopy".


let is slower than var and the way it's likely to be added in jsNext even is even slower (https://mail.mozilla.org/pipermail/es-discuss/2012-September...) the very small improvements it provides aren't worth it




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: