Skip to content

Comment on Deprecating: java.util.Optional.get()?parent

Comments

Scala has grown organically and has a lot of things that are no longer idiomatic. Wartremover makes Option#get a compile error, and many recommend using it on new codebases.

still on java you don't have for generators so it will be really messy to have a big nested flatMap block.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.