Add shortcut to SymbolLookup::find

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 23
    • Affects Version/s: 22
    • Component/s: core-libs
    • None

      While SymbolLookup correctly uses an Optional return to denote whether a symbol has been found by the lookup or not (which enables composition of symbol lookups), many clients end up just calling Optional::get, or Optional::orElseThrow() on the result.

      As such, it would be better if SymbolLookup provided a default method, namely SymbolLookup::get which calls Optional::get on behalf of the user.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: