The bitwise operations and, or, and xor are familiar to most developers. The only difference between them and their logical counterparts is that they do not short-circuit. - Kotlin Cookbook
Does anyone can explain what does the short-circuit means ?
j
Jaymin.Kim
12/18/2019, 9:44 AM
Copy code
fun foo() = false
fun boo() = { print("boo!"); true }
print("a = ")
foo() && boo()
print("\nb = ")
foo() and boo()