Comparator Rules Page¶
Precedence tiers¶
(keyword, old_type, new_type)
keyword
(old_type, new_type)
old_type
ornew_type
(single-sided)default comparator
Declaration¶
Add entries to Config.COMPARE_RULES
; resolution is performed by
CompareRules.get_comparator()
.
Extending¶
Implement a
Compare
subclass.Register it in the rules table.
(Optional) expose it via
ConfigMaker
so convenience constructors pick it up.