Earlier quoted context omitted.
I just checked my small project, and it has 111 this. and about 300 lines with plentiful whitespace. This made me think how much better would it be if it used just single dot for referencing this. Like .property
I don't know if you've toyed around with CoffeeScript before, but that's something it adds in (you can use the Ruby-esque '@property' instead of 'this.property')
What's wrong with JavaScript
11–20 of 43 posts
Re: What's wrong with JavaScript
#12Re: What's wrong with JavaScript
#13But most importantly: It scales.
Structure is declared and not imperatively constructed. Your tools can tell what's going on without actually running the code.
Re: What's wrong with JavaScript
#14I'd rather have a fixed JS (no BS coercion, actual hashes, method_missing, better binding rules, local vars by default, "use scrict" checks for everything, int64 arithmetic, and a non manual ad-hoc way to create prototype chains) as the next version, instead of the "backwards compatible" pile-on that the upcoming version is. Such a JS would enable them to reuse large parts (or the entirety) of the current interpreter…
Re: What's wrong with JavaScript
#15Re: What's wrong with JavaScript
#16> the scoping is wacky (and the var trap is a disaster); Read http://bonsaiden.github.io/JavaScript-Garden/#function.scope... , be enlightened
Re: What's wrong with JavaScript
#17Re: What's wrong with JavaScript
#18I'd rather have a fixed JS (no BS coercion, actual hashes, method_missing, better binding rules, local vars by default, "use scrict" checks for everything, int64 arithmetic, and a non manual ad-hoc way to create prototype chains) as the next version, instead of the "backwards compatible" pile-on that the upcoming version is. Such a JS would enable them to reuse large parts (or the entirety) of the current interpreter…
I politely submit that what you actually want is Python, Ruby, or Lua in the browser.
Re: What's wrong with JavaScript
#19Earlier quoted context omitted.
I don't know if you've toyed around with CoffeeScript before, but that's something it adds in (you can use the Ruby-esque '@property' instead of 'this.property')
I had, but I abandoned it for reasons I cannot recall right now. Maybe because I like to go bare metal every time possible. But maybe I should give it a try...
Re: What's wrong with JavaScript
#20And yet nobody seems to be interested in Dart.