6 ms·
To "what's the point of immutable objects?": runtime polymorphism + maintaining invariants (since immutable, at the time of construction).
by sonyandy 12y ago
To "what's the point of immutable objects?": runtime polymorphism + maintaining invariants (since immutable, at the time of construction).
- kyllo 12y agoWhy do you need objects to get runtime polymorphism? Here's a counterexample of runtime polymorphism without objects: http://clojure.org/runtime_polymorphism http://clojure.org/runtime_polymorphism