Quote needed: Preprocessor usage is bad OO practice

后端 未结 14 1486
失恋的感觉
失恋的感觉 2020-12-09 04:29

I believe, that the usage of preprocessor directives like #if UsingNetwork is bad OO practice - other coworkers do not. I think, when using an IoC container (e.

14条回答
  •  萌比男神i
    2020-12-09 04:53

    One quick point to tell your coworkers is this: the preprocessor breaks operator precedence in mathematical statements if symbols are used in such statements.

提交回复
热议问题