Hacker News new | ask | show | jobs
by L-four 473 days ago
Writing transaction code wrapping a user provided function which can error or panic is a real pain to get right. If the user code panics there is no error if the user code succeeded there is no error. So you have to call recover on success.