16 ms·
Thanks for taking the time to give these detailed responses. One more question (restated from below): Coming from FP where immutability is sacrosanct, I often
by zumu 9y ago
Thanks for taking the time to give these detailed responses.
One more question (restated from below):
Coming from FP where immutability is sacrosanct, I often wind up writing classes that are largely immutable, which doesn't seem like correct OOP. Is there a proper way to marry immutable data structures with OO?
- jtolmar 9y agoThe object-oriented world has been moving towards more immutable and mostly-immutable classes. This is sometimes awkward with large classes, so people use the builder pattern to get around it. (It's a case of languages having not caught up with practices.)