We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c83bf commit 31eca09Copy full SHA for 31eca09
sections/2-language-rules.md
@@ -238,6 +238,12 @@ not change according to the object's history). Case classes are for
238
strictly immutable things. If you need to mutate stuff, don't use case
239
classes.
240
241
+In the approximate words of Fogus in "The Joy of Clojure" or Baker in
242
+his paper from 1993: if any two mutable objects resolve as being equal
243
+now, then there’s no guarantee that they will a moment from now. And
244
+if two objects aren’t equal forever, then they’re technically never
245
+equal ;-)
246
+
247
### 2.6. SHOULD NOT declare abstract "val" or "var" or "lazy val" members
248
249
It's a bad practice to declare abstract vals or vars or lazy vals in
0 commit comments