Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Rescript

< >

Rescript is a programming language created in 2020 by Hongbo Zhang.

#93on PLDB 4Years Old 2kRepos
Download source code:
git clone https://github.com/rescript-lang/rescript-compiler
Homepage · REPL · Source Code · Twitter

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. It comes with a lightning fast compiler toolchain that scales to any codebase size.


Example from the web:
module Button = { @react.component let make = (~count: int) => { let times = switch count { | 1 => "once" | 2 => "twice" | n => Belt.Int.toString(n) ++ " times" } let msg = "Click me " ++ times <button> {msg->React.string} </button> } }
Example from hello-world:
Js.log("Hello World")

Language features

Feature Supported Example Token
Strings ✓ "Hello world" "
Print() Debugging ✓ Js.log
Comments ✓ // A comment
Line Comments ✓ // A comment //
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v146.0.0