[SERVER-30763] Add support for relops in idl generated classes Created: 21/Aug/17  Updated: 22/Feb/18  Resolved: 22/Jan/18

Status: Closed
Project: Core Server
Component/s: IDL, Internal Code
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mark Benvenuto
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-31705 IDL should automatically create == an... Closed
Related
is related to SERVER-29864 Clarify/revisit how IDL-generated cla... Open
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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:

  1. For all fields
    equalityCompare: all
    lessThanCompare: all
  1. 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


Generated at Thu Feb 08 04:24:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.