Error reporting in C++ - Empty values (3/13)

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • Join me in these bi-weekly series to explore the topic of error reporting in C++.
    The focus of this course is the design of functions that normally return a value, but an error may occur so, what should they return instead?
    In this video we will be looking at reporting errors using empty values.
    The concept is rather simple, if an error occurs, we return an empty or a "default" value.
    If no error occurs, we return the actual value.
    This is a simple strategy but occasionally not suitable.
    The course is also available FOR FREE on Udemy.
    It includes coding exercises so you can practice what you have learned.
    Check it out and please consider leaving a review if you find it helpful: www.udemy.com/...

КОМЕНТАРІ • 1