28 ms·
“If your intention is to compile or interpret files as scripts, double semicolons can and should be avoided when writing in OCaml. Leaving them does not raise e
by cwmoore 2y ago
“If your intention is to compile or interpret files as scripts, double semicolons can and should be avoided when writing in OCaml. Leaving them does not raise errors, but they are useless. The compiler tolerates them to allow copy-paste from UTop to a file without having to remove them.“
https://ocaml.org/docs/toplevel-introduction#loading-libraries-in-utop https://ocaml.org/docs/toplevel-introduction#loading-librari...
https://reasonml.github.io/ https://reasonml.github.io/ looks cool, OCaml with javascript.
- Taikonerd 2y ago> https://reasonml.github.io/ https://reasonml.github.io/ looks cool, OCaml with javascript. The Javascript-oriented part of ReasonML got forked to be its own language: Rescript. https://rescript-lang.org/ https://rescript-lang.org/
- disconcision 2y agoyou can, for now at least, still use reasonML with js_of_ocaml to compile to javascript if you like reason syntax but don't want to a more complicated relationship with the ocaml ecosystem (we use this for https://hazel.org https://hazel.org)