Live data from Hacker News

Wat

destroyallsoftware.com

1–10 of 103 posts

Re: Wat

#3
This is incredibly funny, but does anyone know why the interpreter makes such bizarre decisions? Why wouldn't it be preferable to just throw up errors?

Re: Wat

#4
post #3

This is incredibly funny, but does anyone know why the interpreter makes such bizarre decisions? Why wouldn't it be preferable to just throw up errors?

Welcome to the world of JavaScript. This response is NaN.

Re: Wat

#6
Hilarious! This reminds me of a StackOverflow question which asked the users for the weirdest language quirks they could think of. I laughed pretty hard at that too.

Re: Wat

#9
post #3

This is incredibly funny, but does anyone know why the interpreter makes such bizarre decisions? Why wouldn't it be preferable to just throw up errors?

Javascript was a rush job. And the ECMA spec was needed early due to industry pressure. So where perl and (to a lesser extent) python were able to just bury their early goofs in a pile of incompatible versions bumps, Javascript had its encased in the proverbial carbonite of an international standard. Which is sad, really, because in a lot of other ways it's the cleanest scripting language of its generation.

Re: Wat

#10
post #3

This is incredibly funny, but does anyone know why the interpreter makes such bizarre decisions? Why wouldn't it be preferable to just throw up errors?

For more sadness, see: http://wtfjs.com

Fun fact: the creator of Javascript posts on HN. Maybe he'll answer your question.

Post reply on HN