Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Typescript is “breath-first,” you can convert your entire project to typescript in a minimal pull-request. Gradually adopting the syntax.

ReScript requires a lot of commitment, as you have to completely rewrite each module to 100% comply with the type algorithm.

Typescript even transpiles when it encounters type errors.



You don't have to. You can have write a single component in ReScript and use it with the rest of the project written in JS or TS. See https://rescript-lang.org/docs/gentype/latest/introduction


Sorry but that's not true. You can adopt ReScript one file at a time. ReScript supports importing and exporting typescript types out of the box so you still get the type safety from "the other side"

We started using Rescript by adopting individual files until most of our codebase is ReScript. We still have Typescript lingering around but folks _choose_ to refactor it to Rescript because they've found it easier to work with.




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

Search: