7 ms·
optional is not how algebraic data types are implemented in Java. Basically it's the combination of sealed types and records.
by _kidlike 3mo ago
optional is not how algebraic data types are implemented in Java. Basically it's the combination of sealed types and records.
- joe_mwangi 3mo agoUntil they implement member patterns. https://openjdk.org/projects/amber/design-notes/patterns/towards-member-patterns https://openjdk.org/projects/amber/design-notes/patterns/tow...