@deian Hmm... I wonder if is_registered is misleading. I would have thought this would mean that we are actually checking the callback tables to see if this is a valid callback index (it is in bounds)
I wonder if we want to rename this to is_not_null (or better is_null) to clarify all that we are doing is a null check and we aren't checking if the index itself is valid.
Fwiw, another option that is on the table is to support comparisons with nullptr alone which would allow cb == nullptr. Not sure if this makes sense or not though
@deian Hmm... I wonder if
is_registered
is misleading. I would have thought this would mean that we are actually checking the callback tables to see if this is a valid callback index (it is in bounds)I wonder if we want to rename this to
is_not_null
(or betteris_null
) to clarify all that we are doing is a null check and we aren't checking if the index itself is valid.Fwiw, another option that is on the table is to support comparisons with
nullptr
alone which would allowcb == nullptr
. Not sure if this makes sense or not though