Hacker News new | past | comments | ask | show | jobs | submit login

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.




> 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.


There aren't degrees of soundness, it's either unsound (TypeScript) or sound (Rescript).


I 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: