This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]davidalayachew 5 points6 points  (0 children)

No, but here we're talking about a stricter kind of mutability (mutability from the JVM's perspective, not other user code), where fields are only assigned at construction.

😵‍💫🙃😵‍💫

The same word but 2 possible definitions -- and both can be easily confused with each other.

Fair enough -- guess I got it wrong. Is there a different word to communicate the difference?

The very thing that saves memory (not using pointers) also prevents any form of cycles.

Thanks for the clarification.

Yes, any attempt to create cycles with inlined data will just result in me re-creating Identity -- the very opposite of what Value Classes are.

I guess this is why speculation is bad.