← concepts · the commons
condition check
3 moment(s) that assert this concept — showing 1–3 of 3
moderateTwo independent sources — corroborated, but not broadly
↣ how this spread over time →Swift London · youtube · en
1Swift enables aggressive inlining and optimization, such as eliminating redundant condition checks, by analyzing the program's logic and eliminating unreachable code.
“Swift can not only inline the call but it can figure out that minus one less than Zer can never be uh um minus one less than Z is always going to be true and therefore just optimize the whole function cool away”
spoken · 498s · 2016-05-13
2A while loop checks its condition before executing its body, and if the condition is false at the start, the body will not execute at all.
“And if divisor is less than n, it won't execute the loop body even once.”
spoken · 314s · 2017-03-16
3The for loop executes the loop body repeatedly as long as the test condition is true.
“And then you have a bunch of statements which are the loop body, which is what gets executed over and over again.”
spoken · 461s · 2017-03-16