Closed dsheets closed 11 years ago
This comment references this from milestone beta1: https://realworldocaml.org/beta1/en/html/a-guided-tour.html#idp179424
Context:
This chapter gives an overview of OCaml by walking through a series of small examples that cover most of the major features of the language. This should give a sense of what OCaml can do, without getting too deep in any one topic.
Polymorphic compare is covered in lists-and-patterns, and the representation of values is in Part III, at least in the trunk version of the book.
I didn't see a section on primitive types here. Specifically, I was looking for clarification of what a 'char' is and how it behaves under comparisons. In C, chars can be signed or unsigned. I also haven't seen anything regarding polymorphic comparison or structural equality (but perhaps I missed it...). It would be nice to know that chars are bytes and comparison of primitive types is cheap. I left this comment here because it didn't seem to fit elsewhere.