3 ms·
Tried Dart a while back and really liked the language. But I found the emphasis on Dart's use as an application building language didn't fit my use case very w
by apo 11y ago
Tried Dart a while back and really liked the language.
But I found the emphasis on Dart's use as an application building language didn't fit my use case very well - compiling JavaScript libraries.
In short, I wanted to use Dart as a cleaner replacement for the Closure libraries and compiler. It didn't work well. Not only was the JavaScript quite large, but exposing APIs was a time-consuming manual process.
I noticed the change of focus to using Dart as a language that transpiles to JavaScript for in-browser use. That sounds like what I'm looking for.
When will it be possible to use Dart to conveniently create minified JavaScript libraries that expose well-defined interfaces?
- munificent 11y agoI can't give you any time estimates, but what you're asking for is exactly what the team has in mind with "DDC", the new Dart -> JS transpiler[1]. It produces much cleaner, more readable JS and is designed to make it much easier to interop with JS code in both directions. [1]: https://github.com/dart-lang/dev_compiler https://github.com/dart-lang/dev_compiler