this post was submitted on 01 Feb 2024
11 points (86.7% liked)

ReScript

66 readers
4 users here now

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

founded 2 years 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
[–] breadsmasher@lemmy.world 6 points 2 years ago (2 children)

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

[–] ericjmorey@programming.dev 3 points 2 years ago

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

[–] Ephera@lemmy.ml 2 points 2 years ago

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