4 ms·
Rescript extremely underrated imo. For self-contained projects it's strictly superior to typescript: its type system is simultaneously easier to work with and m
by giraffe_lady 4y ago
Rescript extremely underrated imo. For self-contained projects it's strictly superior to typescript: its type system is simultaneously easier to work with and more sound, with better type inference. The tooling isn't better per se but it's easier to use.
If you have dependencies it depends. Writing bindings to all of them can take up a lot of time. Gentype from typescript types is often enough, but not always.
Hope to see this one catch on a lot more. It's an incredible alternative to typescript.
- eterps 4y ago> For self-contained projects it's strictly superior to typescript: its type system is simultaneously easier to work with and more sound, with better type inference. Exactly, typescript is a highly complex addition to a relatively messy language (JS). Rescript feels like what Typescript could have been, a cleanup of JS and a sound typesystem and excellent type inference. (however breaking compatibility as a consequence) IMO Rescript is easier to read than plain JS and still it's fully typed.
- haskellandchill 4y agoThere aren't degrees of soundness, it's either unsound (TypeScript) or sound (Rescript).
- giraffe_lady 4y agoI mean zero to one is still "more" right? Anyway thanks idk shit about type theory and I didn't go to college I just write code for money.