Better error/exception handling. 2 ways:
a) return status upwards the function calling chain and have the top calling function process the status;
b) not necessarily return the status but throw exception when something’s wrong, catch and process the exception in the top calling function or let the calling module catch it.
It’s better if we can combine these two methods effectively.

Instrumentation:
We should pay more attention on assert usage and make it a part of the error/exception handling mechanism.

相关文章:

  • 2021-09-16
  • 2021-08-09
  • 2022-12-23
  • 2021-11-10
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案