News for hackers. Stuff that matters.
Re:Selecting a programming language can be a form of prematu... by Someone on Monday November 15, 2021 @12:59PM (#29230297)
You can also implement an union type as a sealed interface/abstract class with two classes that implement/extend it (https://openjdk.java.net/jeps/409, https://www.baeldung.com/java-sealed-classes-interfaces)

There are no comments on this comment yet.