6 ms·
OCaml exception constructors are just term constructors in the open sum type `exn`. In OCaml, to distinguish constructors from bound variables, constructors mus
by silentOpen 4y ago
OCaml exception constructors are just term constructors in the open sum type `exn`. In OCaml, to distinguish constructors from bound variables, constructors must begin with a capital letter. Thus `let Foo = 4;;` is an error.
- nyuszika7h 4y agoThat doesn't explain why they couldn't have used `Not_Found` or `NotFound` instead.