this post was submitted on 01 Feb 2024
12 points (87.5% liked)

ReScript

48 readers
1 users here now

A community for the rescript programming language. https://rescript-lang.org/

founded 9 months ago
MODERATORS
 

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

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 9 months ago (2 children)

what does “Rust is "C++ in ML clothing"” even mean?

[–] ericjmorey 3 points 9 months ago

The design of Rust applies concepts used by ML (the programing language) to address the problem spaces often addressed by C++.

[–] [email protected] 2 points 9 months ago

The initiator of Rust took lots of inspiration from OCaml...