Why would a language NOT use Short-circuit evaluation?

后端 未结 18 1984
天涯浪人
天涯浪人 2020-12-03 09:42

Why would a language NOT use Short-circuit evaluation? Are there any benefits of not using it?

I see that it could lead to some performances issues... is that true?

18条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 10:10

    I don't know about any performance issues, but one possible argumentation to avoid it (or at least excessive use of it) is that it may confuse other developers.

提交回复
热议问题