Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
silentOpen
· 4y ago · 0 comments
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.
Comments
[–]
lunaynx
4y ago
That doesn't explain why they couldn't have used `Not_Found` or `NotFound` instead.