Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

How to handle the fact that js and js libs are throwing exceptions all over?

$
0
0

so when I work in rust, I usually end up with programs that never crash hard - this is because rust does a good job of propagating error handling requirements throughout your codebase with its result type. I really like that, and obviously try to do the same in rescript.

however, the standard way of dealing with problems in js is just throwing exceptions, which means i have to write wrapper libraries around almost anything that i pull in from the outside world (or i have to mix exception handling and result handling everywhere)

this is one of the major paint points for me with rescript, what are your thoughts on this and how do you deal with it?


Viewing all articles
Browse latest Browse all 2592

Trending Articles