Creating comparators with code generation.