Hacker News new | ask | show | jobs
by silentOpen 1522 days 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.
1 comments

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