Monday, May 31, 2010

Lazy Evaluation

Hey again guys,

For those who missed the IRC class, I'll go over the quick lesson we were taught.

when do anything with an &&

if(a>3 && b>5)

OR

a>3 && printf("hello")

The part after '&&' will only be completed if the first part is true. Otherwise it skips the second part completely, aka lazy evaluation.

No comments:

Post a Comment