top | item 29904448

(no title)

ronenlh | 4 years ago

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.

discuss

order

thegreatpeter|4 years ago

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.