Why is exception handling bad?

前端 未结 15 1392
温柔的废话
温柔的废话 2020-12-04 05:46

Google\'s Go language has no exceptions as a design choice, and Linus of Linux fame has called exceptions crap. Why?

15条回答
  •  遥遥无期
    2020-12-04 06:12

    • Exception not being handled is generally bad.
    • Exception handled badly is bad (of course).
    • The 'goodness/badness' of exception handling depends on the context/scope and the appropriateness, and not for the sake of doing it.

提交回复
热议问题