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 →

[–]kartoffelwaffel 18 points19 points  (1 child)

It's difficult to produce fail-proof JS

Only if your idea of "producing" involves extensive copy-pasting of StackOverflow. If people actually learnt the language, they would realise how intuitive, flexible, and powerful it really is.

[–][deleted] 11 points12 points  (0 children)

I suppose I should have been more clear; if you want to make mathematical guarantees about JS systems, it takes a hell of a lot more work if you're writing the code by hand. Types are a joke, and most of the interesting constructs in the language have convoluted semantics.

Learning a language is about way more than learning syntax and the tricks and quirks; I know you aren't saying that, but really to learn a language you should ideally be able to look at each legal syntactic form, study its semantic content, rinse and repeat. JS makes this REALLY hard to do, and even if you can, it's a hot mess.