Describe the enhancement requested
Currently, Result<T>::Map can take any callable that returns a U or Result<U>, with one exception: it cannot return Status, because Map then tries to wrap it in Result<Status> and that is forbidden.
Instead, if the callable returns a Status, then Result<T>::Map itself should also simply return a Status.
Component(s)
C++
Describe the enhancement requested
Currently,
Result<T>::Mapcan take any callable that returns aUorResult<U>, with one exception: it cannot returnStatus, becauseMapthen tries to wrap it inResult<Status>and that is forbidden.Instead, if the callable returns a
Status, thenResult<T>::Mapitself should also simply return aStatus.Component(s)
C++