3 ms·
In google c++ there are two macros which I feel make it look a lot nicer. ASSIGN_AND_RETURN(auto var, status_or); And RETURN_IF_ERROR(status); Which are
by aleksiy123 2y ago
In google c++ there are two macros which I feel make it look a lot nicer.
ASSIGN_AND_RETURN(auto var, status_or);
And
RETURN_IF_ERROR(status);
Which are just more ergonomic with the drawback of being macros.