▲ | IshKebab 4 days ago | ||||||||||||||||
I agree. If OCaml had solved some of its bigger paper cuts it could have been a real player. Compilation time is much better than Rust too: * OPAM is quite buggy and extremely confusing. * Windows support is very bad. If you ever tried to use Perl on Windows back in the day... it's worse than that. * Documentation is terse to the point of uselessness. * The syntax style is quite hard to mentally parse and also not very recoverable. If you miss some word or character the error can be "the second half of the file has a syntax error". Not very fun. Rust's more traditional syntax is much easier to deal with. Rust basically has none of those issues. Really the only advantage I can see with OCaml today is compile time, which is important, but it's definitely not important enough to make me want to use OCaml. | |||||||||||||||||
▲ | jll29 4 days ago | parent [-] | ||||||||||||||||
I'd say the Modula-2 inspired module system is a very valuable asset compared to today's Rust. The only contact with OCaml I had was that I wrote a bug report to a university professor because I wanted his tool to process one of my files, but the file was larger than OCaml's int type could handle. That itself wasn't the problem - he wrote it wasn't straight forward to fix it. (This is a bug of the type "couldn't have happened in Common LISP". But I guess even in C one could replace int by FILE_SIYE_TYPE and #define it as unsigned size_t, for instance). | |||||||||||||||||
|