Skip to main content
4 of 5
I don't think the meaning "cause a programmer to lose control" is clear enough on its own without specifying what he loses control over. So I've re-added that information.
sepp2k
  • 4.3k
  • 1
  • 28
  • 25

Why is the concept of lazy evaluation useful?

It seems lazy evaluation of expressions can cause a programmer to lose control over the order in which their code is executed. I am having trouble understanding why this would be acceptable or desired by a programmer.

How can this paradigm be used to build predictable software that works as intended, when we have no guarantee when and where an expression will be evaluated?

z_axis