Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2800

Rename Option<T>::get(const T& _t) to getOrElse() and refactor the original function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.24.0
    • stout
    • Mesosphere Sprint 14
    • 3

    Description

      As suggested, if we want to change the name then we should refactor the original function as opposed to having 2 copies.
      If we did have 2 versions of the same function, would it make more sense to delegate one of them to the other.

      As of today, there is only one file need to be refactor: 3rdparty/libprocess/3rdparty/stout/include/stout/os/osx.hpp at line 151, 161

      Attachments

        Issue Links

          Activity

            People

              balamark Mark Wang
              balamark Mark Wang
              Benjamin Hindman Benjamin Hindman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: