|
|
|
|
|
by kerkeslager
2308 days ago
|
|
As someone who has worked in Javascript basically since Javascript was invented, it's been "quickly changing" that entire time, and the majority of the changes have made things worse, not better. It used to be that you could trace your code through 15 layers of callback hell and eventually find the problem. Now there's 10 different syntactic sugars around callbacks, so you get to save a few characters of typing and then trace your bugs through 50 layers of callback hell, most of which are in some 0.0.1-alpha-versioned promise library which may actually just be a XSS attack. Improvement? I think not. Just because more people are doing it, doesn't mean it's improving. I'll believe things are going in a good direction when `{}.foo` throws an exception in all major JS implementations. But I'm not optimistic about that ever happening. My only hope for JavaScript right now is that it might die because WebAssembly lets a reasonable language achieve dominance. |
|
It does. That's a SyntaxError.