Header Image

Expect the Expected

Writing code that is resilient upon errors has always been a pain point in all languages. Exceptions are the politically correct means to signal errors in C++, but many applications still resort to error codes for reasons related to ease of understanding, ease of handling errors locally, and efficiency of generated code.

This talk shows how a variety of theoretical and practical artifacts can be combined together to address error codes and exceptions in one wholesome, simple package. The generic type Expected<T> can be used for both local (error-code-style) and centralized (exception-style) manners, drawing from the strengths of each.

February 27 @ 09:30
09:30 — 10:30 (1h)

Online

Andrei Alexandrescu

× How can I help you?