Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What if anything makes Dart better than say ES6 or ES7 or whatever version of JavaScript that adds optional types, generators, etc...


Dart is usable now. ES6 has long been delayed, and who knows when ES7 will be available for mass usage.

There are lots of intro pages out there to get you a little more familiar with it [0][1][2]. Dart as a language spec isn't all that deep, and it tries to keep things simple and easy to use. A lot of the power I feel like comes from the library and tools that come with the language.

[0] http://programming.oreilly.com/2013/05/dart-is-not-the-langu...

[1] https://www.dartlang.org/docs/dart-up-and-running/contents/c...

[2] http://en.wikipedia.org/wiki/Dart_(programming_language)


To add a few more useful links. Language spec[0][1] is available under a free license and they welcome input on it[2]. The 3 top starred bugs in their bugtracker are: enums, non-nullable types, and "await" support [3], though I don't expect non-nullable types to ever be added, but they like hearing what is important to programmers. If there is really a killer language feature that people want, starring it will increase it's chances of being considered.

[0] https://www.dartlang.org/docs/spec/latest/dart-language-spec...

[1] https://code.google.com/p/dart/source/browse/trunk/dart/docs...

[2] http://news.dartlang.org/2014/02/standardizing-dart-1st-ecma...

[3] https://code.google.com/p/dart/issues/list?can=2&q=&sort=-st...


I don't really care about ES6 or ES7. The point of my comment wasn't to compare anything. I (subjectively) liked working with Dart. I did like the "batteries included" approach of Dart vs JS, but that's not really a language think so much as it is an ecosystem/leadership difference.


The best bit about Dart is not new features, but many of the footguns that have been removed compared to JS.

Note: Dart doesn't have generators, and Ecmascript is not planning on adding optional types.


The designers got to mostly start from scratch (some things are there for JS compatibility) not only at the language level, but importantly also at the VM level. It's already ~ 2X faster than V8 and they believe there is room for more performance gains. Then add in all of the nice language features beyond classes and types and you have something worthwhile.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: