4 ms·
The ability to mix JS and Dart in the same web app (and maybe do something crazy like a an inter-VM messaging channel) would be vital to the adoption of Dart, I
by idibidiart 12y ago
The ability to mix JS and Dart in the same web app (and maybe do something crazy like a an inter-VM messaging channel) would be vital to the adoption of Dart, IMO. That way, an organization (hypothetically speaking) can introduce Dart into their 20K+ lines of Javascript one feature at a time, without the burden of refactoring (feature isolation)
- floitsch 12y agohttps://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-js https://api.dartlang.org/apidocs/channels/stable/dartdoc-vie...
- idibidiart 12y agoHa!
- spankalee 12y agoFlorian pointed out dart:js, but we know we need to continue to make this even better and easier. Ultimately we want you to be able to seamlessly use Dart code from JavaScript, and get some of Dart's benefits when using JavaScript from Dart. Stay tuned.
- idibidiart 12y ago<<Ultimately we want you to be able to seamlessly use Dart code from JavaScript>> That IS key to the slippery slope of adoption.
- tosh 12y agoWe (https://www.blossom.io https://www.blossom.io) are using Dart alongside JavaScript (CoffeeScript) right now. You can call JavaScript code from Dart and vice versa. https://www.dartlang.org/articles/js-dart-interop/ https://www.dartlang.org/articles/js-dart-interop/ This was a great pragmatic stepping stone for us as we moved from a JavaScript only code base to a much saner development experience thanks to Dart. Related write-up: http://news.dartlang.org/2013/04/why-blossom-is-switching-to-dart.html http://news.dartlang.org/2013/04/why-blossom-is-switching-to...