3 ms·
That comes across very much as a “we fixed all these nasty issues with Typescript” comparison
by edf13 4y ago
That comes across very much as a “we fixed all these nasty issues with Typescript” comparison
- iddan 4y agoThe Reason team is not motivated by hate, rather they have a different POV than the TypeScript team. They are focused on full soundness instead of full JS ergonomics.
- Semaphor 4y agoI would say literally the first 2 sentences of the first bullet point say something very different: > TypeScript's (admittedly noble) goal is to cover the entire JavaScript feature set and more. ReScript covers only a curated subset of JavaScript.
- codeptualize 4y agoI think they describe well that Typescript needs a lot of complexity by supporting all of JS. That's both a strength and a weakness, easy to get started for people who know JS, but typings can get crazy complex. Rescript has a different approach which has lots of benefits, it is much better in terms of type inference, it's much faster, and I think it's fair to say safer. The tradeoff is that it's not JS, making it harder to adopt. I do think they are doing a great job in taking steps to present the ocaml origins in more JS friendly patterns and syntax, but it still requires learning some new concepts. I think a somewhat good comparison is; If Typescript is like C# for JS, Rescript is like F#/ocaml for JS. Different technologies have different tradeoffs.