Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by _kidlike

14 hours ago

optional is not how algebraic data types are implemented in Java. Basically it's the combination of sealed types and records.

1 comment

_kidlike

Reply

joe_mwangi  2 hours ago

Until they implement member patterns. https://openjdk.org/projects/amber/design-notes/patterns/tow...

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities