let arr = [| 1; 2; 3 |];;
instead of something like let arr = [1, 2, 3];
I wish ReasonML (https://reasonml.github.io/) would come back -- it's a new syntax for the same language, kind of the same relationship Elixir has to Erlang. let arr = [| 1; 2; 3 |];;
instead of something like let arr = [1, 2, 3];
I wish ReasonML (https://reasonml.github.io/) would come back -- it's a new syntax for the same language, kind of the same relationship Elixir has to Erlang.I think you’re doing Elixir a bit of a disservice by that comparison, though - Elixir is very much its own language on the Erlang platform, whereas Reason really is pretty much just an alternate syntax.
That said, one of the big problems with Ocaml is that the ecosystem is so fragmented; I don’t think Reason really adds much (at least if you’re not using with JSX) to make it worthwhile and I’m kind of mad that it exists.
Huh -- so, Elixir has some new semantics, rather than just being "Erlang with Ruby syntax?" I hadn't known that -- but admittedly I'm not an Erlang/Elixir dev.
It's not ruby syntax either. There are some very obvious inspirations, but it also explicitly rejects some standard ruby moves in favor of FP conventions. The whole "ruby for beam" angle was dropped years ago, and I'm not sure how much if any support that marketing tactic ever had from the official elixir devs.
Though, I agree the semicolon delimiting is regrettable.
https://dune.readthedocs.io/en/stable/reference/dune-project...
#[1, 2, 3]
It's still not a feature you can expect all implementations to have, so OCaml is not in a bad position there I think. (Although I prefer SML most of the time.)
The number of SML implementations supporting this feature is greater than the number of OCaml implementations. ;)
It does have its own neat features, though. Not to mention access to the .NET ecosystem, of course.