elsecannot
Elsecannot is a hypothetical keyword or operator proposed in programming language theory to express that the else-branch of a conditional statement is unreachable under the given preconditions or invariants. It is not part of mainstream programming languages, and its exact syntax and behavior have varied in theoretical discussions.
Semantics and usage of elsecannot are not standardized. In static models, elsecannot signals that, for all valid
Examples in pseudo-code can illustrate the idea. For instance: if (user_is_admin) { grant_access(); } else cannot { deny_access(); }. In
History and reception: elsecannot has appeared mainly in theoretical discussions and design drafts about dead code
See also: unreachable code, exhaustive pattern matching, contract programming.