go-v.orgcodex
Menu
Page tools

codex · Philosophy

Flow-sensitive typing

In programming language theory, flow-sensitive typing (also called flow typing or occurrence typing) is a type system where the type of an expression depends on its position in the control flow. In statically typed languages, a type of an expression is determined by the types of the sub-expressions that compose it. However, in flow-sensitive typing, an expression's type may be updated to a more specific type if it follows an operation that validates its type. Validating operations can include type predicates, imperative updates, and control flow.

Wikipedia contributors, "Flow-sensitive typing", Wikipedia, revision 1357000164, retrieved 20 November 2026, source, CC BY-SA 4.0.

More Philosophy · Search the codex