Hacker News new | ask | show | jobs
by talex5 4160 days ago
You're right. OCaml will throw an exception here. Many of the functions in the standard library throw exceptions when it would be better to return an option type (newer libraries are usually better).

The exception will be caught and logged in the "callback" function below. It then rethrows it, but the unikernel will continue serving requests.