News for hackers. Stuff that matters.
Re:dotNET (OK, C#) gets union types by sheept on Saturday May 23, 2026 @05:23PM (#48251671)
It seems like if you wrap both in a record then it should be possible:

    public record Left<T>(T Value);
    public record Right<T>(T Value);
    public union Either<L, R>(Left<L>, Right<R>);

There are no comments on this comment yet.