Lazy Operators

This lesson explains how lazy operators can be used in D language.

We'll cover the following...

Lazy operators #

Lazy evaluation is the delaying of the execution of expressions until the results of those expressions are needed. Naturally, this delay may make programs run faster if the results end up not being needed.

A concept similar to lazy evaluation is the short-circuit behavior of the following operators:

  • || (or) operator:
...