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

MatchExpressions that have an "init()" function should instead take those arguments at construction time

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.1
    • None
    • Internal Code
    • Fully Compatible
    • Query 2017-10-02, Query 2017-10-23, Query 2017-11-13, Query 2017-12-04

    Description

      There are several match expression that have an init() method. This seems silly, and opens the way for people to use match expressions before calling init(), which is almost always a Bad Thing. Instead, we should make those match expressions take those arguments in their constructor, so that the objects are always in a valid state.

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: