Instead of having two functions set_*_callback and unset_*_callback for each callback, I think it would be simpler to only have set_*_callback, and have it take an optional function as argument (the Some case installing a callback, the None cas removing it). What do you think?
Instead of having two functions
set_*_callbackandunset_*_callbackfor each callback, I think it would be simpler to only haveset_*_callback, and have it take an optional function as argument (theSomecase installing a callback, theNonecas removing it). What do you think?