Remix.run Logo
frankie_t 6 hours ago

I've recently started a mini-project in OCaml, having some Haskell background.

The worst thing so far is that you have to declare and define functions before using them. This results in unimportant utility functions being at the top, and the most important functions being at the bottom of a file.

I haven't had much issue with let bindings, however that might be because my functions are fairly simple for now.

RandomThoughts3 3 hours ago | parent | next [-]

> The worst thing so far is that you have to declare and define functions before using them.

That's an extremely good thing.

Unordered definitions and where are some of Haskell worst decisions with lazy by default, overuse of operators and a community which sadly think point-free is desirable.

That's the kind of choices which makes Ocaml a lot more readable.

greener_grass 5 hours ago | parent | prev [-]

I've always liked this - it follows the structure of a good academic essay

bmitc a minute ago | parent [-]

Yep. Datatypes, helper functions, and then the good stuff. In every file. It is actually beautiful and easy.