3 ms·
Some people also complain about a tiny set of syntactic issues. Other than that I like both ml and ocaml.
by agumonkey 9y ago
Some people also complain about a tiny set of syntactic issues. Other than that I like both ml and ocaml.
- pjmlp 9y agoHaving learned ML languages via Caml Light, I never understood what those complaints are about. Maybe the only thing I would complain would be the separation between integer and floating point math.
- agumonkey 9y agonot even the monomorphism, I forgot but there's a few warts at the syntactic level only.
- k__ 9y agoA few months ago I read monomorphism is the way to go performance wise. Something about people writing fast code with Flow/TypeScript than with plain JavaScript because the typing leads to less polymorphic code which is easier to optimize for the compiler.
- tom_mellior 9y agoIn this context, "monomorphism" just meant that OCaml requires you to write "+" to add integers and "+." to add floats (and yet other things to add bignums or whatever). This has nothing to do with performance per se. It doesn't make OCaml code faster than languages that allow you to write "+" for both int+int and float+float. The compiler knows anyway.
- k__ 9y agoBut that's what most devs do, right? If it doesn't look like C it's ugly, haha. Anyway, Reason seems to have a bit nicer syntax than OCaml, I think.
- firethief 9y agoReason seeks to destandardize syntax, a fascinating experiment I'd prefer to watch in a language not already held back by community fragmentation.