-
Notifications
You must be signed in to change notification settings - Fork 478
Closed
Description
AstSemantics.md has the concept of a trap, which means
execution [...] is terminated and abnormal termination is reported to the outside environment.
Several operators are defined to trap, such as integer division when the denominator is zero. What's the best way to represent this in OCaml? Would an exception be appropriate?
In the future, trapping behavior may be made customizable, though I don't think it's necessary to try to anticipate this in the current code.
Metadata
Metadata
Assignees
Labels
No labels