DEV Community

Discussion on: "I Was Bored, So I Brought Rust Enums to TypeScript" - A Tale of Questionable Life Choices

Collapse
 
webbureaucrat profile image
webbureaucrat

Neat!

Have you ever looked into ReScript? It's like the midpoint between Rust and TypeScript. If you're into this sort of thing you might like it.

Collapse
 
jasuperior profile image
Ja • Edited

Ah! yes! Rescript! the OCaml clone that compiles to JS. I've seen it, and I'm a fan of functional languages like those in general. But in the case of Rescript, some of the syntax choices kinda bug me πŸ˜… ( I hate the way they do named arguments for instance). Still tho, I only started doing this to cover a particular need in my application, and it makes more sense to stick with typescript as a compiler. I may have to write about the project i'm doing in the future, but I dont think I want to go all full fp and endo functor the whole project from the ground up, you know (πŸ₯ see what i did there lol).

Plus, its fun exploring new abstractions in new spaces.

Collapse
 
webbureaucrat profile image
webbureaucrat

For sure!

And yeah the named arguments syntax is pretty gross.

Thread Thread
 
wadecodez profile image
Wade Zimmerman

Nah
Image description