Re:Deprecating: java.util.Optional.get()?
by lmm on Thursday April 28, 2016 @01:33PM
(#11590540)
Sure - you need casts or a similar feature. You don't need standard library methods that do casts, though, and having them invites trouble IMO.
[ Parent
| on HN ]
Re:Deprecating: java.util.Optional.get()?
by pcwalton on Thursday April 28, 2016 @02:00PM
(#11590721)
Library methods are preferable to added language complexity.
You need the language functionality of casting anyway, no? Best that there's one and only one way to step around the type system.