-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: IDL, Internal Code
-
None
-
Fully Compatible
A common extension of idl types is the generation of relops for those types (at the very least == and !=).
We currently have free functions in the codebase which use both all fields, as well as limited subsets, so a code reducing implementation should probably support both of those modes.
An example syntax might look like:
- For all fields
equalityCompare: all
lessThanCompare: all
- For a subset
equalityCompare: [a, c, b]
lessThanCompare: [a, c, b]
naming things is hard, but mimicking C++ standard concepts might be a good start
- duplicates
-
SERVER-31705 IDL should automatically create == and != operators
- Closed
- is related to
-
SERVER-29864 Clarify/revisit how IDL-generated classes fit into larger C++ classes
- Open