Is anybody using the named boolean operators?

前端 未结 13 2233
南方客
南方客 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:38

    Those were not supported in the old days. And even now you need to give a special switch to some compilers to enable these keywords. That's probably because old code base may have had some functions || variables named "and" "or" "not".

提交回复
热议问题