is it possible in ML catch every possible exception? for example if I don't know what exception might be
Asked
Active
Viewed 1,494 times
1 Answers
10
The handle
statement lets you pattern match exceptions, so you can use something like handle _
to match anything, e.g.
hd [] handle _ => 0

Ismail Badawi
- 36,054
- 7
- 85
- 97