News for hackers. Stuff that matters.
Re:OCaml at Bloomberg by dgan on Tuesday August 24, 2021 @05:35AM (#28286673)
Every time i got excited about OCaml and every time I tried, I was overwhelmed by syntax, and the fact that there is no type annotations.

I don't understand how that's "a selling point" for the language, it makes the code even less readable than poorly named un-annotated python.

I d really like to use ut though,i think Haskell is the next closest

Re:OCaml at Bloomberg by yawaramin on Tuesday August 24, 2021 @09:28AM (#28288574)
Not only are there type annotations, but they get their own file—best of both worlds! https://dev.to/yawaramin/ocaml-interface-files-hero-or-menac...

And especially nowadays with the state-of-the-art OCaml plugin for VSCode with type-on-hover and codelens, even reading interface files is super simple.

Re:OCaml at Bloomberg by rucikir on Tuesday August 24, 2021 @05:45AM (#28286739)
There are type annotations. The syntax is `(expression : type_expression)`.