wordfor

invariant

noun

Software design

  1. A condition that must always hold true for a piece of data or a system, before and after every operation. Invariant: the sum of all ledger entries equals zero.

In plain words

  • this should always be true
  • the balance must never go negative
  • a rule that must never be broken

See also safety property make illegal states unrepresentable parse, don't validate

Find similar words