Immutability in Programming

The cluster centers on debates about the merits and drawbacks of immutability versus mutability in programming languages, including its role as a feature or limitation, implementation details, and comparisons across languages like Go, Rust, and Java.

➡️ Stable 0.7x Programming Languages
3,472
Comments
19
Years Active
5
Top Authors
#3741
Topic ID

Activity Over Time

2008
5
2009
40
2010
42
2011
50
2012
66
2013
140
2014
198
2015
271
2016
218
2017
281
2018
232
2019
218
2020
326
2021
300
2022
286
2023
213
2024
229
2025
341
2026
16

Keywords

OO e.g JS NET TBH ANY DateTimeImmutable GET I.e JavaScript immutability immutable mutability mutable const language variable pointers array code

Sample Comments

jasonkostempski • Oct 23, 2016 • View on HN

"Some downsides of immutability" ...

coolsunglasses • Mar 31, 2014 • View on HN

Immutability is good but far from enough.

knocte • Jul 5, 2014 • View on HN

I see that immutability is not a first-class citizen in this language... mmmhhh....

nmrm2 • Jul 12, 2015 • View on HN

Immutability isn't a shortcoming. It's a feature. :-)

lispisok • Sep 24, 2024 • View on HN

Immutability by default contributes just as much if not more

unclebucknasty • Jul 12, 2015 • View on HN

Mutability isn't a shortcoming. It's a feature.

nilirl • Jun 18, 2025 • View on HN

How did it make an argument for immutability?

serverholic • Feb 9, 2021 • View on HN

I think you're interpreting immutable too literally.

rthomas6 • Mar 10, 2015 • View on HN

Oh, I meant immutable. Thanks for pointing that out!

TheZenPsycho • Nov 12, 2013 • View on HN

what's wrong with "immutable" ?