Remix.run Logo
BenGosub 2 days ago

> I'd often joke, "I love Rust, but what I really want is a simpler Haskell with a C-like syntax" or "I love Rust, but if it had a garbage collector, Rust would be my perfect language".

OCaml is a simpler Haskell, but I don't think it has a C-like syntax. However, rescript[0], the JavaScript like syntax for OCaml based Hindley Milner typed language might actually fit well for small and personal projects.

[0] https://rescript-lang.org/docs/manual/v8.0.0/introduction

adius 2 days ago | parent [-]

Reason (https://reasonml.github.io/) is the JS like syntax for OCaml. ReScript is a fork that explicitly removes the connection to OCaml and focuses on JavaScript output.

BenGosub a day ago | parent [-]

yes, correct, but ReasonML is abandoned, while there is still some traction in Rescript and it offers the same type safety.