Comparing OCaml and Standard ML (2008)
adam.chlipala.net
adam.chlipala.net
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.
https://dune.readthedocs.io/en/stable/reference/dune-project...
It does have its own neat features, though. Not to mention access to the .NET ecosystem, of course.
Though, I agree the semicolon delimiting is regrettable.
#[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. ;)
Nope, and now they've even removed the 'it'll be a first class target when we've finished rewriting OPAM' promise that was there for 3+ years, that's not good.
https://discuss.ocaml.org/t/ocaml-windows-working-group/1475...
That OPAM 2.2 is actually nearing release is good news. I'll keep a more vigilant eye on it for the next month or two.
Ironically, I can't even remember what v5 feature it was that was a deal breaker (to not have) anymore, anyway.
Comparing Objective Caml and Standard ML - https://news.ycombinator.com/item?id=34805229 - Feb 2023 (47 comments)
Comparing OCaml and Standard ML - https://news.ycombinator.com/item?id=8497214 - Oct 2014 (68 comments)
Comparing Standard ML and OCaml - https://news.ycombinator.com/item?id=4391937 - Aug 2012 (20 comments)
Spells out the "O" in OCaml as "Objective", so it doesn't turn up in the "past" list.