Conditional logging with minimal cyclomatic complexity

前端 未结 12 1942
情歌与酒
情歌与酒 2020-11-27 10:58

After reading \"What’s your/a good limit for cyclomatic complexity?\", I realize many of my colleagues were quite annoyed with this new QA policy on our project: no more 10

12条回答
  •  不知归路
    2020-11-27 11:21

    In C or C++ I'd use the preprocessor instead of the if statements for the conditional logging.

提交回复
热议问题