Re:Programming a space invader in OCaml and OpenGL: lessons ...
by sweeneyrod on Friday February 21, 2020 @11:25AM
(#22384312)
People don't do it much, but if you're using the most popular build system (dune) you can replace your .ml files with .re ones and it will Just Work. So you can use OCaml projects for reference (I think anyone who's doing Reason should have a vague grasp of OCaml syntax, it's not really that different).
[ Parent
| on HN ]
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by firethief on Friday February 21, 2020 @01:54PM
(#22385675)
> I think anyone who's doing Reason should have a vague grasp of OCaml syntax, it's not really that different
Especially if you're targeting native, so all your dependencies are written and documented in OCaml syntax.
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by baddox on Friday February 21, 2020 @06:24PM
(#22388038)
Aren't the Ocaml and ReasonML syntaxes so similar that you can effectively convert both directions and still end up with clean idiomatic code? That has seemed to be the case when I've played around with the ReasonML, and if it's the case, then which one you choose to write is very much arbitrary. Heck, you could even write one syntax locally and then automatically convert to the repo's preferred syntax when you commit your code.