Blog index
2025-02-16 Cristian Carlesso

Why choosing ReScript for a new project in 2025

When I suggested using ReScript for a new project, rather than the current TypeScript/React stack, I was asked to write my reasoning for why I think ReScript would be a better fit for us, I thought it would be a good idea to write the reasons here (no pun intended).

Reasons:

In summary, I think ReScript stays out of the way of the developer while still doing its job of being a safeguard thanks to its strong type system, its superpower is type inference, which means no more has implicit type any messages in loops, forcing you to type a function parameter used in a single place.

Cons to adopt ReScript are that the language is being developed by a small team and there’s not much adoption yet, plus a need to learn a new language, and the cost to update to future versions is unknown.

I think those are a reasonable challenge for some team, but I think in my case it’s not a big of a deal;

as I mentioned previously, ReScript is easy to migrate from, so worst-case scenario we’ll have an exit route.

Final words

I used to be quite contrary to use a different language that compiles to JavaScript for a reason or another in the past, but we live in a world where compilation steps are mandatory and as crazy as it sounds it can take many minutes to build a client application.

I come from a time where building an egregious UI application would take seconds as we would just append different files together and pipe them to a linter/minifier, now it’s super easy to produce huge bundle where 90% of the code is not even running.

Oppose this to something like ReScript that produce small code by default, cuts out what’s unused and makes tree-shakable libraries and then it’s easy to see results like this.

I’m not as opposed to different languages as I used to be, after all we extended JavaScript to support types and to add a lot more features to the language, with the availability of a vast user library now we now need those tools.

But first and foremost is the User Experience, I think ReScript improves the developer experience without negatively affecting users.

Discuss on bluesky