top | item 30999996

(no title)

silentOpen | 3 years 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.

discuss

order

nyuszika7h|3 years ago

That doesn't explain why they couldn't have used `Not_Found` or `NotFound` instead.