|
|
|
|
|
by minkzilla
712 days ago
|
|
AN interesting and non rigorous way to think of it is can the compiler optimize away the non compute-able part. So this: if (God does exist)
return isPrime(3)
else
return isPrime(5)
The compiler can take this and in the first pass say, isPrime(3) is just return true, isPrime(5) is return true. Then we have an an if else with the same return for both cases, this is the same as return true! |
|