Hacker News new | past | comments | ask | show | jobs | submit login

It's an OK choice. I'd rather they picked Dart instead. Dart has a better OO support and a cleaned up core language. But it's early days for Dart still.

Dart has a VM by the same folks who created the JavaScript V8 Engine and they say that they expect Dart to be faster than JavaScript in a number of ways. Part because Dart's code is less dynamic than JavaScript's. Part because loading Dart files could use a pre-parsed file.

You can work on documenting Dart code by adding types to the APIs as it's optionally typed. Dart on the browser gets translated into JavaScript for deployment making the issue of not having a Dart VM everywhere less important.

One of the niceties of Dart is that before deploying, code gets reduced by removing unused code with a tree-shaking algorithm based on Dart's less dynamic features.

  class Dart extends JavaScript {
    var points;
    Dart(this.points = 10);
  }
That's a sample Dart class with default constructor parameter.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: