vanvoorden
(Rick van Voorden)
201
Correct. Here is another POV along those same lines:
You want a "maybe different" comparison, where "definitely equal" is a fast path, and "maybe different" will fire sometimes even when nothing differs.
The motivation being, an observer might be about to do some linear operation anyway when values have changed, and that linear operation is fairly similar in effort to an equality check in cases of false change notifications, so they might as well do it even when nothing has changed rather than pay the price of first checking for definitive inequality, then performing that work.
1 Like