News for hackers. Stuff that matters.
Re:If TypeScript is so great, how come all notable ReactJS p... by lmm on Tuesday September 20, 2016 @08:33AM (#12538968)
TS seemed more willing to interoperate with the rest of the JS ecosystem - gradual typing, external .d.ts files for popular libraries, working with existing build tools and module systems. Whereas Dart felt like more of a gated community where you were expected to do things the Dart way and there wasn't much support for traditional JS.
Re:If TypeScript is so great, how come all notable ReactJS p... by markdog12 on Tuesday September 20, 2016 @09:53AM (#12539476)
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

I haven't used it though, so I can't say if it works as advertised.

Re:If TypeScript is so great, how come all notable ReactJS p... by lmm on Tuesday September 20, 2016 @10:04AM (#12539555)
> 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.

Re:If TypeScript is so great, how come all notable ReactJS p... by monyr75 on Tuesday September 20, 2016 @11:09AM (#12540090)
I 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.
Re:If TypeScript is so great, how come all notable ReactJS p... by markdog12 on Tuesday September 20, 2016 @10:19AM (#12539673)
Yes, I agree with your point that typescript is easier to hop into if you have an existing js project.
Re:If TypeScript is so great, how come all notable ReactJS p... by svieira on Tuesday September 20, 2016 @10:05AM (#12539560)
What'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`?
Re:If TypeScript is so great, how come all notable ReactJS p... by markdog12 on Tuesday September 20, 2016 @10:24AM (#12539729)
Pub 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