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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.1
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Fully Compatible
    • Query 2017-10-02, Query 2017-10-23, Query 2017-11-13, Query 2017-12-04

      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.

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

              Created:
              Updated:
              Resolved: