|
|
|
|
|
by smabie
2133 days ago
|
|
This is so old, I personally wouldn't read it. If you want to learn Ocaml, probably the best current resource is Real World Ocaml v2: https://dev.realworldocaml.org/. It doesn't have good coverage of the not so real world things or the myriad of syntax extensions (mostly from Jane Street). The main auther is one of the original co-founders of Jane Street as well. The only reason I'm saying this is that the Jane Streets guys steer the direction of the language heavily, and their needs don't necessarily fit mine. Their standard library alternative Core (which RWO uses) is a ton of code, pulling in hundreds of dependencies. This leads to a native compiled hello world binary being over 20mb. |
|
I wouldn’t disregard it simply due to its age - that is a bad habit I see all too often (“Old = bad!”). Just to make sure before posting this, I went to some random parts of the book and pasted example code into a utop REPL for the latest Ocaml version and it worked fine. So it’s not like the code has bit rotted. It’s still worth a read if someone is interested in languages. It is not worth reading if you are looking for a tutorial on spinning up some form of web app or server app that uses all the shiny things people are currently excited about.