I am thinking more about marketing for ReScript these days.
What is the selling point of ReScript, where does it really shine, how is it different from typescript?
ReScript – a data oriented programming language optimized for JS platform
This is what comes into my mind.
There are many good parts from ReScript, e.g, soundly typed, great performance, fearless refactoring.
The essential points, in my opinion, are just two parts:
It has a very rich data description language for data modelling, ADTs, pattern match, polymorphic variants, and row polymorphism. All these parts combined together make ReScript really shines in data modelling.
Optimized for JS platform. What sets ReScript from other ML dialects is that the quality of the compiler is really good, and comes with a lightning fast build system, easy interop with JS ecosystem. Without such hard engineering, it would stay in the academics.
ReScript used to be marketed as a functional language, or JS with types. This is nice, but there are some problems with such marketing:
Functional language makes people think about Haskell or other academic languages. ReScript is a practical language, it is designed to make shipping easier, it has some reasonable abstractions, but it is not really for building fancy abstractions. So marketing ReScript as a functional language would make us targeted to a small niche audience which is probably not what we want.
JS with types. There are just too many here. It is hard to explain to an average programmer how typescript’s type system is different from ReScript, if it takes a while to explain, let’s just avoid it.
What do you think?