5 ms·
The code examples doesn't use Jane Streets Core as the primary standard library. If you do, for example by adding `open Core.Std` to your .ocamlinit, you'll get
by fredyr 11y ago
The code examples doesn't use Jane Streets Core as the primary standard library. If you do, for example by adding `open Core.Std` to your .ocamlinit, you'll get the behaviour you're describing.
It is probably a good idea to use Core, but for this introduction I wanted as little requirements as possible.
edit: spelling
- arocks 11y agoRight. Since you mention the installation instructions from Real World OCaml and the examples in the book need you to use Core, it is likely that beginners would experience these issues.
- fredyr 11y agoThat's a good point. I'll add a note to explicitly say that the examples doesn't use Core.