|
|
|
|
|
by GeorgeWBasic
2138 days ago
|
|
If you were inclined to try again, I'd start here: https://dev.realworldocaml.org/install.html for installing the basic compiler and tools: essentially, use your OS package manager to install opam, and then use opam to install everything else. Then work through the rest of the book. As far as unicode goes, strings in OCaml are just bytes, so it won't mangle any unicode without you telling it to. If you need to process text that uses code points above the ASCII ones, there is camomile, which can be installed easily with opam and has documentation here: http://camomile.sourceforge.net/dochtml/CamomileLibrary.html . I haven't used it but it looks straightforward enough. Note that sometimes people in forums will complain about an OCaml library not being updated in years. In the OCaml universe, this is normal. Many libraries don't get much churn and continue to work unmodified for years. As long as they've been modified since the switch to immutable strings, and as long as they don't depend on libraries that do churn (Base does a bit, as it's still in development, but they'll stop soon I think) they'll probably work. I use several such. |
|