Y
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
braythwayt
3667 days ago
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.
link
33degrees
3669 days ago
I was going to say the same thing; it's certainly possible to write immutable object oriented code
link
norswap
3668 days ago
Indeed, it's more of a pattern.
link
"It's OO, and it can't be both OO and FP."
Hmmm.