by nathell · 12y ago · 0 comments
My #1 gripe with OCaml is the fact that its strings are composed of single-byte characters. I know there's Camomile, but not having it as part of the language core creates a sense of disintegration akin to PHP and Python 2.
There's also this: http://www.podval.org/~sds/ocaml-sucks.html which I mostly agree with.
But, all in all, OCaml rocks.
I also mostly agree with it for base OCaml (and I write OCaml every day), but it's worth noting a lot of the complaints--even the ones outside of the 'standard library' section--can be fixed by using a better standard library. (Like Jane Street's Core/Async, which is what I'm most familiar with.)
I do disagree with several of those complaints though (not auto-converting between numeric types is a feature, not a bug!), and several of them are the kind of things that seemed like a big deal when I first started using OCaml and now no longer do. (Like the record field names issue...if you're writing well-organized code each type almost always has its own module anyway, so this doesn't matter much.)
Camomille is great, but it exhaustively covers the whole UTF standard, which you might not need for more casual uses. There are other libraries bringing lighter support for UTF strings (ocamlnet for instance I believe). Nevertheless, Camomille does a pretty good job if you're concerned by compliance.
> There's also this: http://www.podval.org/~sds/ocaml-sucks.html which I mostly agree with.
It's a pretty old page. I'm not sure its content is still accurate. I'll have to look into that.
not that old, even though ocaml metabolic rate increased a lot in the recent years
[1]: http://caml.inria.fr/pub/docs/manual-ocaml-4.01/extn.html#se...
Half of it never was as it is just "ocaml isn't lisp and I can't handle that".