Suppose I write a project where the UI is written in Rescript and React and the backend API is written in Ocaml. Is it possible for the two to share any code? It will be cool to be able to share (1) data types (2) data validations and (3) Json SerDE code between the rescript and ocaml code bases.
Assuming that the shared code is written in OCaml it should be fine. I don’t know if it’s endorsed, nevertheless it’s unlikely that ReScript would drop support for OCaml syntax in the forseeable future given that it’s written in it.
@tsnobip do you have any resources to share so that even I can get started with this? I have installed ocaml on my machine (utop, dune, etc) but I don’t have any guidance on how to make these two tool chains work with each other and share resources.