News for hackers. Stuff that matters.
Re:Overhead of Returning Optional Values in Java and Rust by shawnz on Saturday October 16, 2021 @11:37PM (#28893733)
OptionalLong is an object which optionally contains a value type (lowercase L) long. Optional<Long> is an object Optional which optionally contains an object Long.
Re:Overhead of Returning Optional Values in Java and Rust by sushsjsuauahab on Sunday October 17, 2021 @03:35PM (#28899112)
Oh nice! I should have checked the docs or Intellij to see that it returns the primitive type ;)