ReasonML vs TypeScript

前端 未结 6 1845
挽巷
挽巷 2021-01-30 06:44

What are the tradeoffs between ReasonML (https://reasonml.github.io/) and TypeScript (https://www.typescriptlang.org/)?

6条回答
  •  旧巷少年郎
    2021-01-30 07:18

    The are very different.

    • ReasonML is a distinct language from JavaScript that compiles down to JavaScript
    • TypeScript is a strict superset of JavaScript that compiles down to JavaScript

    If you want to write typesafe code both are excellent choices.

    • If you want to write typesafe JavaScript, then TypeScript is the option.

    • If you want to write typesafe some language that compiles down to JavaScript then ReasonML is one of many options. The some language in ReasonML's case is OCAML.

    More

    My biased opinion : https://medium.com/@basarat/typescript-won-a4e0dfde4b08

提交回复
热议问题