rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

Converter for ReasonML/Ocaml syntax -> ReScript

Open tom-sherman opened this issue 4 years ago • 1 comments

As a ReScript novice, it's tough right now searching for resources and seeing them written in ReasonML or OCaml syntax. Reading these resources takes extra cognitive effort because I'm not as familiar with the other syntaxes.

I have found myself recently using the excellent rescript format -stdin [.res|.resi|.ml|.mli|.re|.rei] command to do conversion to ReScript syntax so it's easier for me to read and understand.

I think adding such a converter to the Playground (or a separate page) would help people like me but maybe are less comfortable using the command line to perform the conversion. I would probably use such a tool instead of the format command anyway because it's relatively easy to switch to another browser tab and paste the code, rather than context switching between the browser and a shell.

tom-sherman avatar Apr 25 '21 13:04 tom-sherman

There's a playground setting that allows converting between reason and rescript syntax already.

We will not add any OCaml toggl, because we don't want to give the wrong impression that ppl should rely on OCaml resources of any kind.

ryyppy avatar May 10 '21 08:05 ryyppy