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

Add support for relops in idl generated classes

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • IDL, Internal Code
    • None
    • Fully Compatible

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: