What is Nostr?
Benedikt Ritter /
npub1zv8…hga0
2023-07-28 08:45:41

Benedikt Ritter on Nostr: Java will be getting value classes https://openjdk.org/jeps/8277163 in short it’s ...

Java will be getting value classes https://openjdk.org/jeps/8277163 in short it’s classes where instances don‘t have a unique identity. In other words == and equals() will behave the same way. It took me so long to understand the difference for traditional classes. In wonder whether this will make things more confusing because now you need to look up a class definition when you see == somewhere. Also records can be value classes…
#java #jep #confused #oop #objectorientedprogramming
Author Public Key
npub1zv8fmts7r6eh6gwhan8669xwccaqdq2tl2m3pmyd85euhh7dw7rqlvhga0