Previously, when people need to deal with DTU with different UpdateStrategy using different actions, they need to
if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Lazy) { ... } if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Eager) { ... }
After the patch, they can avoid code patterns above
if (DTU.isUpdateLazy()){ ... } if (!DTU.isUpdateLazy()){ ... }
Maybe something shorter would also fit here, like:
// Returns true if the current strategy is Lazy.?