3 ms·
Dart has gradual typing > working with existing build tools and module systems I'd say they replaced it with a better tool, pub. The one good argument you ha
by markdog12 10y ago
Dart has gradual typing
> working with existing build tools and module systems
I'd say they replaced it with a better tool, pub.
The one good argument you have there is .d.ts files. Dart lacks them, but there are tools to generate js bindings from those same .d.ts files.
https://github.com/jirkadanek/definitely_typed https://github.com/jirkadanek/definitely_typed
I haven't used it though, so I can't say if it works as advertised.
- lmm 10y ago> I'd say they replaced it with a better tool, pub. Right but that route ends in forcing people to leap to a whole different ecosystem before they can even try your thing. Whereas with typescript you could put a single .ts file in your existing project without messing with anything else.
- markdog12 10y agoYes, I agree with your point that typescript is easier to hop into if you have an existing js project.
- monyr75 10y agoI consider the small hop to TS its greatest disadvantage, personally. JS's ecosystem is a horribly broken mess, and any sane person would welcome a leap to another, better designed one. Dart has JS-interoperability for those times when you just can't get away, but TS is like an anchor holding you down in the mire of the JS world.
- svieira 10y agoWhat's awesome about `pub`? If you're talking to someone like me who uses `npm`, `webpack`, and is now considering `rollup` ... what am I missing if I don't look at `pub`?
- markdog12 10y agoPub is an all-in-one tool that can replace all those disparate tools. You can't just pull your package from pub (leftpad). Extremely trivial, but I prefer yaml to json, :) https://www.dartlang.org/tools/pub https://www.dartlang.org/tools/pub