Re:Introduction to Functional Programming in OCaml
by erokar on Thursday August 23, 2018 @10:17AM
(#17827426)
I don't get it. I work day to day with Algol-syntax languages like JavaScript and Java, but have dabbled in ML languages like Elm and Haskell. One of the things I really like about those languages is the syntax -- succinct and clear. What takes time and is hard for me is grasping the semantics and patterns.
[ Parent
| on HN ]
Re:Introduction to Functional Programming in OCaml
by masklinn on Thursday August 23, 2018 @11:20AM
(#17827978)
OCaml's syntax is way more verbose and noisy than Haskell's or Elm's. It tends to have longer keywords, more sigils, … and some of the defaults are inconvenient (non-recursive lets)
https://wiki.haskell.org/OCaml has some trivial examples
Re:Introduction to Functional Programming in OCaml
by acjohnson55 on Thursday August 23, 2018 @11:13AM
(#17827914)
I find it pretty clear in simple cases but ambiguities and associativity rules can make interpreting some code a real pain.