Scary thought ;)
Scary thought ;)
For this reason I kinda want Dart to succeed. Why not make the browser truly polyglot if we are trying replace OS with browsers?
Because of that it's also a pretty awful assembly target, something which is only now being addressed with things like invokedynamic, finally moving Java byte code beyond Java 'the language.'
'1' - 0 is 1. Guess what '1' + 0 is? Nope, it's '10'.
Crockford's JavaScript truth table is mind-bending. On top of that, semicolon insertion.
I find the weird scoping rules around 'this' and the verbosity of anonymous functions far worse. [1]
(Sincerely and non-rhetorically) Do you really find the former more annoying than the latter? I see a lot of people using those examples to call out JS inappropriateness for development, but it seems like they're focusing on the wrong things to me.
[1] I know they can be fixed by using a language that compiles down to JS. So can the parent's criticisms.