3 ms·
I agree that immutability is very useful, but you don't really need any kind of FP to use immutability, do you?
by DrJokepu 10y ago
I agree that immutability is very useful, but you don't really need any kind of FP to use immutability, do you?
- 33degrees 10y agoI was going to say the same thing; it's certainly possible to write immutable object oriented code
- norswap 10y agoIndeed, it's more of a pattern.
- braythwayt 10y agoIf your data is immutable, in what sense is your code not 'Functional Programming?' "It's OO, and it can't be both OO and FP." Hmmm.