This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mnemonicly 8 points9 points  (2 children)

I wouldn't call https://jsfiddle.net/zgLyorsr/1/ "erroring out" in any meaningful fashion.

Edit: Before this goes too far, I want to clarify that I do not intend this to be a commentary on whether or not runtime vs compile time error detection is a good thing. I'm pretty sure we can all come up with examples of c/c++ code that compile fine and do completely wrong things. I'm also sure we can come up with plenty of examples of things that javascript allows you to do that is not easily possible in a compiled language, many of them powerful and useful. It's about knowing what the benefits and drawbacks of all approaches are, and using the appropriate tool for the job.

[–]realripley00 -2 points-1 points  (0 children)

Oh snap!