5 ms·
ES7 has async/await. Coffee script has a tighter syntax despite being older than Dart. Typescript has optional types and is being used at both Microsoft and Goo
by nailer 12y ago
ES7 has async/await. Coffee script has a tighter syntax despite being older than Dart. Typescript has optional types and is being used at both Microsoft and Google. Also: you don't think JS has libraries and mixins?
- skybrian 12y agoHow about: "ES7 will most likely have async/await when it's finished." Sorry, using the present tense for things that will be in browsers years later (hopefully) is a common practice that's an issue with me. Let's stick with what people can actually use today. Also, pointing to features people can use in different dialects of JavaScript is not really fair. Just about everything you can think of has been experimented with and probably deployed somewhere. It doesn't count unless it's all available in the same toolchain and can be used in a unified way while writing a single app.
- have_humility 12y ago> Sorry, using the present tense for things that will be in browsers years later (hopefully) is a common practice that's an issue with me. Let's stick with what people can actually use today. If that's the metric we're applying, Dart fares no better...
- spankalee 12y agoHow so? You can use Dart today and yesterday and tomorrow.
- wycats 12y agoIn what browser?
- wstrange 12y agoChrome, Firefox, Safari and even IE! All via dart2js
- nailer 12y agoSure but you can also use es7 today (which I did).
- axlprose 12y agoYes, and even compared to ES7, Dart still fares rather well. Most people that doubt this seem to not have actually tried the Dart workflow and core libraries. The productivity gain from those two features alone makes it compelling against all other compile-to-js options, because what it brings to the table isn't just a fancy language with nicer syntax+semantics.
- nailer 12y agoThe dart std lib, at least the DOM manipulation bits, are indeed nice. OTOH: JS has the largest module system of any programming language ever, which also tends to make it pretty productive.
- spankalee 12y agowycats: IE 10 and up, Safari 6 and up, Chrome, FF, Opera, last 2 versions.
- bhouston 12y ago> Sorry, using the present tense for things that will be in browsers years later (hopefully) is a common practice that's an issue with me. Let's stick with what people can actually use today. ES7 async/wait is available now via the ES7 polyfill Babel.js: http://babeljs.io/ http://babeljs.io/ There are a ton of polyfills available right now for ES6/ES7 features: http://kangax.github.io/compat-table/es7/ http://kangax.github.io/compat-table/es7/ BTW I also think that the current state of aggressive polyfills is also influenced by Dart's compile to JS functionality. :)
- skybrian 12y agoComparing Babel.js to dart2js is fair. I'd be interested in hearing more about about how well it works in practice from people who use Babel.js for large apps. (Also, how does it compare to Typescript?)
- spellboots 12y agoAnyone creating a new Ember.js application today is using babel by default. It works very well in my experience. I haven't used typescript however.
- bhouston 12y agoI think with time Typescript and Babel.js are to be merged, if you through in Strong Script to the mix I guess you have the future of JavaScript.
- kyllo 12y agoTypescript has optical types What are optical types? I've never heard of this term and Google turned up nothing on it.
- untog 12y ago100% sure it's a typo of "optional types".
- hibbelig 12y agoHow boring :-) I'd love to look forward to a language with optical types. I'm sure it's at least as interesting as operand overloading in Intercal.
- DonHopkins 12y agoOptical types are when they shave the bushy hair off of the type system, and it looks an inch longer. https://www.youtube.com/watch?v=NsbXwzqlqsU https://www.youtube.com/watch?v=NsbXwzqlqsU
- moron4hire 12y agoThe types aren't optional. The types are always there. The type annotations are optional.