Live data from Hacker News

Is JavaScript getting worse?

buzzdecafe.github.io

1–10 of 117 posts

Re: Is JavaScript getting worse?

#3
I'm sorry, but I really see no point in this article.

Do you realize that if the optional arguments were not included in Function#length, you'd just be saying "They are not reflected in the function’s length property. C'mon, man" instead ?

Also, I don't understand Whoop-dee-freakin’-doo.

Re: Is JavaScript getting worse?

#5
post #3

I'm sorry, but I really see no point in this article. Do you realize that if the optional arguments were not included in Function#length, you'd just be saying "They are not reflected in the function’s length property. C'mon, man" instead ? Also, I don't understand Whoop-dee-freakin’-doo.

"They are not reflected in the function’s length property" is exactly what the article does say.

  Whoop-dee-freakin’-doo
http://en.wiktionary.org/wiki/whoop-de-doo http://en.wikipedia.org/wiki/Tmesis

Re: Is JavaScript getting worse?

#6

This is one of the few posts about javascript that I've encountered that sees hoisting as a good thing. I like `let`.

Have you read the linked article about typeof? Normally, it's safe to do typeof possiblyUndeclaredVariable, but if later in the function you do let possiblyUndeclaredVariable it starts the scope defined as "uninitialized", which causes typeof to throw.

Re: Is JavaScript getting worse?

#8

This is one of the few posts about javascript that I've encountered that sees hoisting as a good thing. I like `let`.

Have you read the linked article about typeof? Normally, it's safe to do typeof possiblyUndeclaredVariable, but if later in the function you do let possiblyUndeclaredVariable it starts the scope defined as "uninitialized", which causes typeof to throw.

Well that's perfectly normal in a properly scoped language.
Post reply on HN