Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30763

Add support for relops in idl generated classes

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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:

      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

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: