Lazy Evaluation

Noun · Development

Definitions

  1. An evaluation strategy that delays the computation of an expression until its value is actually needed, avoiding unnecessary work and enabling infinite data structures.

    In plain English: The program doesn't calculate something until it actually needs the result, saving time by skipping work that might never be used.

    Example: "Haskell is lazy by default — it won't compute anything until you force it to."

Related Terms