6 ms·
I've used Rescript (and ReasonML before that) for side projects, I really like it. I'd say it main strength is also its main weaknesses; it's not JS with a C# s
by codeptualize 5y ago
I've used Rescript (and ReasonML before that) for side projects, I really like it. I'd say it main strength is also its main weaknesses; it's not JS with a C# sauce (like TS), it's OCaml'ish with a JS sauce, making it really nice in many ways but also harder to pick up for JS folks.
That's where Typescript clearly has the advantage; being just JS with types makes it much easier to get started, and the fact that its #huge also helps a lot.
It's a bit sad as I think ReScript is much better on many fronts: the type system with crazy good inference and soundness, very easy to configure and add to existing projects (it just outputs JS files even with TS types), the module system is amazing (gone with imports) and creating simple bindings to existing JS/TS is also quite easy once you understand the basics, I'd go as far as saying it's easier than TS . It's also really fast, both the compilation as well as the JS it outputs.
Because of the adoption hurtle I doubt it will be as big as TS, but I really hope it gains enough momentum and usage to just sit comfy in its niche, for that I think it needs to grow a bit further.
I do think the ReScript team has made incredible progress on all fronts; I think ReScript is much easier to pick up than Reason, because of the language tweaks, but also the new website is so much better than the scattered docs in multiple places.
I hope it will continue to improve and more people will give it a go!