Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on OCaml Programming: Correct and Efficient and Beautiful. Parent comment
anyway, it's a fairly trivial wrapper to handle the odd annoying thing that raises
Option.try_with (fun () -> thing_that_exns ())
Result.try_with (fun () -> thing_that_exns ())
(it would be nice if you could tell if something raises by the type signature somehow though)
There are no comments on this comment yet.
anyway, it's a fairly trivial wrapper to handle the odd annoying thing that raises
Option.try_with (fun () -> thing_that_exns ())
Result.try_with (fun () -> thing_that_exns ())
(it would be nice if you could tell if something raises by the type signature somehow though)