useor
Useor is a hypothetical binary operator discussed in programming language design and logic. It is intended to model a fallback choice between two expressions or resources, returning the first usable value. Unlike a standard logical OR, useor is defined with an emphasis on the notion of usability rather than truthiness alone.
Semantics vary across proposals, but common definitions include: (1) the left-most usable value wins; a value
Evaluation concerns accompany useor. Side effects in the first expression can complicate semantics, and languages with
Limitations include its status as a non-standard, theoretical construct, potential confusion with existing operators, and possible
See also: or operator, null-coalescing operator, fallback, short-circuit evaluation, lazy evaluation.