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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: