News for hackers. Stuff that matters.
Re:Java Is Unsound: The Industry Perspective by dsp1234 on Tuesday January 24, 2017 @02:52PM (#13474845)
edit: this is wrong, I was misreading the documentation, which states that the Optional class is a value type, not the contents of the Optional class.

According the documentation, Optional is only valid with value types[0]:

"This is a value-based class; use of identity-sensitive operations (including reference equality (==), identity hash code, or synchronization) on instances of Optional may have unpredictable results and should be avoided."

Again, I have no experience, so if this is wrong, then additional corrective references would be awesome.

[0] - https://docs.oracle.com/javase/8/docs/api/java/util/Optional...

There are no comments on this comment yet.