Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Lazy Evaluation


Lazy evaluation is not implemented yet. The current plan is to make it a modifier for arguments such that one can define:

  bool : choice <TRUE, FALSE>
    infix && (lazy other bool) bool
      match (bool.this) { TRUE => TRUE, FALSE => other }

Where the modifier lazy converts the argument into a lazily evaluated closure.