Erlang's let-it-crash philosophy - applicable elsewhere?

后端 未结 7 2127
感情败类
感情败类 2020-12-12 12:39

Erlang\'s (or Joe Armstrong\'s?) advice NOT to use defensive programming and to let processes crash (rather than pollute your code with needless gu

7条回答
  •  我在风中等你
    2020-12-12 13:23

    IMHO Some developers handle/wrap checked exceptions with code which add little value. It is often simpler to allow a method to throw the original exception unless you are going to handle it and add some value.

提交回复
热议问题