От: | kaa.python | РСДН профессионально мёртв и завален ватой. | |
Дата: | 31.05.19 01:22 | ||
Оценка: | 8 (1) +2 -1 |
Ну и еще довольно интересно что в CppCoreGuidelines насчет исключений и их применимости говорят. Вот не менее интчересный кусок из CoreGuidelines:On their face, the benefits of using exceptions outweigh the costs, especially in new projects. However, for existing code, the introduction of exceptions has implications on all dependent code.
По большому счету, сторонники отказа от исключений либо говно мамонта поддерживают, либо в ооочень жестком окружении работают, либо* Often, explicit error checking and handling consume as much time and space as exception handling.
* Often, cleaner code yields better performance with exceptions (simplifying the tracing of paths through the program and their optimization).