3 ms·
because it is closer to java or C# than it is to the more advanced functional languages. Yeah, it has structural typing, some type inference and pinky swearing
by shados 10y ago
because it is closer to java or C# than it is to the more advanced functional languages.
Yeah, it has structural typing, some type inference and pinky swearing type guards. It is better in those regards. But you still don't get very far without annotations. C# had inference for anonymous objects and return values too, and TypeScript is only a little further ahead on that one.
Though the main problem with TS is how it actually gets used. You certainly CAN do java-like garbage with it, and god do people do. If you're not stuck with people doing that, it's not half bad.
- jolux 10y agoIt's just sort of a shame that TS is winning out over Flow. I remain convinced that the latter is better.
- shados 10y agoyup. Flow has a couple of annoying bugs (situations where the type checker ignores errors without warning you), and tooling and IDE integration is horrible. Plus windows support is still slow and buggy. Flow is my favorite too, i much prefer its type system, but its no surprise its "losing".