Mutable state
Meaning in software engineering, with examples
In software engineering, mutable state means: Program state that can be changed after creation, such as variables or objects whose stored values are updated over time.
In Turkish: değiştirilebilir durum
How it is used
Used in programming, state management, and concurrency discussions. Teams often limit mutable state because shared updates can make code harder to predict and test.
Example sentences
The bug came from mutable state in the cache object, which one request updated while another request was still reading it.
Here, mutable state refers to shared data that changes over time, creating inconsistent behavior when different operations access it together.
Our instructor asked us to remove mutable state from the example so the function would always return the same result.
In this example, the term points to changeable stored values that affect whether a function behaves predictably.
Common collocations
- mutable state
- shared mutable state
- avoid mutable state
- state mutation
Related terms
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:
