recently read the height book, advanced skills where talked about lazy loading function, after a day of search to understand, but in the search process found the term lazy evaluation, look at Wikipedia, found that the definition is simply summarized as follows:
when needed to evaluate and avoid repeated evaluation. (core idea: deferred processing)
lazily loaded functions should fit in to avoid repeated evaluations, but it doesn"t seem appropriate to evaluate only when needed.
what is the relationship between them?
also, does lazy evaluation need to use closures, so closures are all lazy evaluations?
I would like to ask the great gods for explanation. Thank you here!