what are the effects providing lazy evaluation in Imperative Languages? my answer was "It is a technique which is being used to postpone the evaluation of the expression until it’s components are needed, Basically why are you running a block of code when you don’t need to use it somewhere so lazy evaluation postpones all these type of expressions. It is also called call-by-need." and then I start explaining what actually imperative languages but the Prof. Said my boy you are wrong? please explain in detail what are the effects basically?
Lazy evaluation is the postponing of an evaluation until the result of the evaluation is needed. So really it is: Why evaluate the expression if the result is not used.
2.1m questions
2.1m answers
60 comments
57.0k users