Is anybody using the named boolean operators?

前端 未结 13 2261
南方客
南方客 2020-12-06 10:52

Or are we all sticking to our taught \"&&, ||, !\" way?

Any thoughts in why we should use one or the other?

I\'m just wondering because several answe

13条回答
  •  生来不讨喜
    2020-12-06 11:22

    So to summarize: it's not used a lot because of following combination

    • old code where it was not used
    • habit (more standard)
    • taste (more math-like)

    Thanks for your thoughts

提交回复
热议问题