News for hackers. Stuff that matters.
Re:Deprecating: java.util.Optional.get()? by lmm on Thursday April 28, 2016 @02:19PM (#11590873)
You need the language functionality of casting anyway, no? Best that there's one and only one way to step around the type system.
Re:Deprecating: java.util.Optional.get()? by pcwalton on Thursday April 28, 2016 @03:12PM (#11591229)
No, you need pattern matching, which does not offer a convenient way to write Option.get().