使用人指定的布尔运算符? [英] Is anybody using the named boolean operators?

查看:90
本文介绍了使用人指定的布尔运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

或者我们都坚持我们的教导与&&!放;, ||方法是什么?

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

在我们为什么要使用一个或其他有什么想法?

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

我只是想知道,因为几个答案状态thate code应该尽可能自然,但我还没有看到很多code的以与,或,非虽然这是更自然

I'm just wondering because several answers state thate code should be as natural as possible, but I haven't seen a lot of code with "and, or, not" while this is more natural.

推荐答案

那些没有在过去的支持。即使是现在,你需要给一个特殊的开关,一些编译器,以使这些关键字。这可能是因为旧的code基可能有一些功能||变量命名为和或没有。

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".

这篇关于使用人指定的布尔运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆