Lazy Evaluation

Introduction The concept of lazy evaluation is not difficult. So, this time, I will focus on its usefulness. Background Knowledge If you are confused between expression and evaluation, please refer to the following article: https://jurogrammer.tistory.com/129 Definition Lazy evaluation is a strategy where the evaluation of an expression is delayed until its value is needed. It is usually used to improve performance. Let’s see how delaying evaluation can improve performance. Example of Performance Improvement Here is an example where a value is only used if a certain condition is met. ...

August 8, 2021