IT lexicon › Programming › Binding (programming)

Binding (programming)

Programming På svenska → Updated: 2026-05-26

Association between a name and a value. Variable binding: let x = 5. Data binding: ties a UI element to underlying data, auto-updates. Language binding: library wrapper in one language for a C API.

Lexical scoping (most common): binding resolved by where the code is written. Dynamic scoping (Lisp legacy): by where the code is called — modern languages have it only for config/exceptions (Python contextvars, JS AsyncLocalStorage). Late binding: method calls resolved at runtime (OOP, polymorphism). Early binding: at compile time (C functions, virtual functions can be both). Frontend frameworks: two-way data binding (Knockout, Angular 1, Vue) vs one-way (React).

← Back to the lexicon