short-circuit evaluation
短路求值
lhs && rhs:
If the result of lhs compares equal to zero, then rhs is not evaluated at all (so-called short-circuit evaluation)
若 lhs 的结果比较等于零,则完全不求值 rhs (是谓短路求值)。
lhs || rhs:
If the result of lhs compares unequal to zero, then rhs is not evaluated at all (so-called short-circuit evaluation)
若 lhs 的结果比较不等于零,则完全不求值 rhs (是谓短路求值)。