3 ms·
Honestly that was the selling point of ReasonML to me. Share business domain types and share common code but also get a native compiled backend. The pattern mat
by omniscient_oce 5y ago
Honestly that was the selling point of ReasonML to me. Share business domain types and share common code but also get a native compiled backend. The pattern matching, variants, and syntax of Rescript are quite nice but unfortunately I don't find it enough of a selling point for frontend code that (in my experience) does not benefit as much from those previous points as say writing compilers or parsers because the majority of what youre writing is interacting with 3rd party libs and components, building forms etc in React, for which the code ends up looking pretty similar in rescript-react.
- cies 5y agoExactly. I could take the whole "generate API consumer client lib from API specification" out of the equation.
- pbiggar 5y agoWe tried doing this with darklang. It ended up not actually working that well (it took a lot of effort to have even a few shared types), and it didn't get us very much either.
- omniscient_oce 5y agoI think I read your postmortem on that actually. Good stuff