Skip to content

Commit

Permalink
mention std::expected as replacement for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ponce authored and sponce committed Sep 30, 2024
1 parent f8f2b38 commit 4b7b88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talk/morelanguage/exceptions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
\end{itemize}
\item \textit{don't} use exceptions to provide alternative/skip return values
\begin{itemize}
\item you can use \cppinline{std::optional} or \cppinline{std::variant}
\item you can use \cppinline{std::optional}, \cppinline{std::variant} or \cppinline{std::expected} (\cpp23)
\item avoid using the global C-style \cppinline{errno}
\end{itemize}
\item never throw in destructors
Expand Down

0 comments on commit 4b7b88d

Please sign in to comment.