Expect the expected (2018 - Andrei)

Reinventing exceptions.

When should you use them ?

  • for eg network code may want to retry thing
  • You want to have error immediately recognisable
  • Want to transport information from where it happens to where it is handle.

Expected<T,E>

Written on September 21, 2019, Last update on October 11, 2019
exception lang error-handling c++