3 ms·
I agree the second form is preferable to the first one. But I think, most people will use the second form anyway. In my projects, ocamlformat chooses the second
by yodsanklai 4y ago
I agree the second form is preferable to the first one. But I think, most people will use the second form anyway. In my projects, ocamlformat chooses the second option.
In the case of OCaml, we can certainly find a few oddities, but really, I never found the OCaml syntax to be such an issue or to make me unproductive in any way. I'm much more prone to syntax errors in Haskell actually.
I suspect people who complain are mostly used to C-like syntax and aren't familiar with any language of the ML tradition. I agree that the barrier to entry would be lower if the syntax was more "mainstream", but I don't find there's really anything wrong with OCaml syntax, except that it's "different".
- 0x457 4y agoOh, I don't think Ocaml syntax is an issue at all, I like most of it. I'm saying that, syntax isn't the least important part of a language - look at how many languages compile to JavaScript without bringing anything new ("new" being something like types in TypeScript). > I suspect people who complain are mostly used to C-like syntax and aren't familiar with any language of the ML tradition Yes, that's probably it. Can't really blame them - C, C++, Java, C#, PHP been very popular for long time. When I first saw Erlang, I thought it's a language for aliens.