[article]: ReScript: Rust like features for JavaScript 12

https://dev.to/jderochervlk/rescript-rust-like-features-for-javascript-2i4h-temp-slug-4298483?preview=79a91357bc5f508d595cccb80df67ebae37e10468300b0a45bb1372b718bd647377730e177f6f9d6570fbaac7b8d2990fd2049b49f3c72e17fc648f4

It’s not published yet, but I would love some feedback before it goes live later this week.

Published!

Thanks for taking a look and providing feedback!

5 Likes

I would mention Result as well.

Rust devs are proud that they do not need to throw exceptions everywhere.

3 Likes

I’d also mention the fact that the last expression in a function is the result (no need for return), and that most structures are expressions (like if else is an expression, etc)

4 Likes

Great suggestions! I’ve added a section for result and for expressions and the lack of explicit return statements.

1 Like

you won’t find any or unknown types in ReScript

:grimacing:

I am sorry to break it to you, but there is an unknown type.
But it is just a predefined abstract type.

2 Likes

Ah! The more you know!

How would one actually encounter this type?

For instance:

1 Like

Thanks for the feedback! I published it earlier today and so far it’s getting some decent views :slight_smile:

2 Likes