Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-752

identical class names, method names, and parameter names cause painful ambiguity

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The C++11 driver employs significant technical acrobatics to disambiguate between types, functions, and parameters with the same name. As such, contributors are forced to learn esoteric features of the language like class qualifiers and other obscure techniques for disambiguating the overloaded names.

      Given that the benefit of naming the related classes, methods, and parameters the same thing is mostly subjective (some aesthetic pleasantry) - and the downsides are fairly obvious (the driver is harder to contribute to), I think that we should change the types to end in _t (or adopt some other convention) to disambiguate.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: