Software Engineering vocabulary · Programming Concepts

Closure

Meaning in software engineering, with examples

nounCommon term

In software engineering, closure means: A function together with access to variables from its surrounding lexical environment, even when it is called from elsewhere.

In Turkish: kapanım

How it is used

Used in JavaScript and functional programming when explaining callbacks, private state and variables captured by nested functions.

Example sentences

  1. The closure keeps access to the request ID after the outer function returns.

  2. Each closure in this list captures a different configuration value.

Common collocations

  • create a closure
  • closure capture
  • lexical closure

More terms: Programming Concepts

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: