问题描述
想象一下下面的一段代码:
if someBool && funcReturningABool() {
// code here...
}
其中 someBool
是布尔值,funcReturningABool
返回 true 或 false。
如果someBool
等于false,funcReturningABool
还会被执行吗?
想象一下下面的一段代码:
if someBool && funcReturningABool() {
// code here...
}
其中 someBool
是布尔值,funcReturningABool
返回 true 或 false。
如果someBool
等于false,funcReturningABool
还会被执行吗?