Hacker News new | ask | show | jobs
by DrJokepu 3669 days ago
I agree that immutability is very useful, but you don't really need any kind of FP to use immutability, do you?
3 comments

If 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.

I was going to say the same thing; it's certainly possible to write immutable object oriented code
Indeed, it's more of a pattern.