Is it necessary to write else part in every if condition?

后端 未结 11 1627
-上瘾入骨i
-上瘾入骨i 2021-02-19 05:16

The question I asked might be closed, But i just want to know that is it necessary to write else part of every if condition. One of my senior programmer said me that \"you shoul

11条回答
  •  眼角桃花
    2021-02-19 05:38

    Sometimes there is no else part....and including an empty one just makes the code less readable imho.

提交回复
热议问题