cs3110 / textbook

The CS 3110 Textbook, "OCaml Programming: Correct + Efficient + Beautiful"
Other
720 stars 132 forks source link

5.6.3: Expose the exception 'Empty' as part of the module signature. #169

Closed cionx closed 4 months ago

cionx commented 7 months ago

I believe that the last example in section 5.6.3 (Options vs Exceptions) should expose the exception Empty via the module signature. This is how it was done in all previous examples, and also how it is done in the standard library (e.g., https://v2.ocaml.org/api/type_Stack.html).

clarksmr commented 4 months ago

Thanks!