Skip Navigation

ReScript: Rust like features for JavaScript

dev.to ReScript: Rust like features for JavaScript

If Rust is "C++ in ML clothing" then ReScript is "JavaScript in ML clothing". What is...

ReScript: Rust like features for JavaScript

January 18 2023 Josh Derocher-Vlk writes:

If Rust is "C++ in ML clothing" then ReScript is "JavaScript in ML clothing".

What is ReScript?

ReScript is "Fast, Simple, Fully Typed JavaScript from the Future". What that means is that ReScript has a lightning fast compiler, an easy to learn JS like syntax, strong static types, with amazing features like pattern matching and variant types. Until 2020 it was called "BuckleScript" and is closely related to ReasonML.

ReScript is growing and adding features to make it more appealing as an alternative to JavaScript. ReScript v11 was recently released and adds some very nice quality of life improvements.

Let's take a quick look at a few features that Rust and ReScript share with some code examples.

Read ReScript: Rust like features for JavaScript

3
3 comments