Re:Type-safe GraphQL with OCaml
by ernst_klim on Monday December 04, 2017 @01:16AM
(#15841837)
>Ocaml's features don't flow well together
May you provide an example of features which don't flow well together?
Golang has fewer features than Ocaml and is worse in almost every way, but people love it's simplicity. The best language features are the ones you can add without significantly increasing syntactic complexity.
I agree that Ocaml has some great features that the current SML spec lacks. That spec is 20 years old now. There's plenty of room to look at Ocaml features and pick a good set that does enough of the things without blowing up the complexity.
SML's let expression is definitely superior to Ocaml's. Ocaml has two different `let` expressions -- one for top-level and one for sub-expressions.
To borrow from a comparison [here](http://adam.chlipala.net/mlcomp/)
SML groups multiple declarations together which provides greater clarity IMO while having an end keyword helps identify the let block.