Wat
destroyallsoftware.com
Wat
1–10 of 103 posts
Re: Wat
#2WAT
Re: Wat
#3This 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
#4This 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
#5WAT
Wat.
Re: Wat
#6Hilarious! 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
#7This is a repost, but whatever. Hopefully people who haven't seen it before will enjoy it.
Re: Wat
#8Even with my limited programming knowledge I laughed a lot through this.
Re: Wat
#9This 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
#10This 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.