Skip to content

Latest commit

 

History

History
68 lines (63 loc) · 2.49 KB

immutability.md

File metadata and controls

68 lines (63 loc) · 2.49 KB

Immutability

A piece of data is immutable if it cannot be modified after it has been created.

This is some important consequences:

  • It reduces [side effects][side-effects] in your code.
  • To modify a piece of data, you have to create a copy of that data.

Immutable data is a common concept in functional programming languages.