News for hackers. Stuff that matters.
Re:Union types ('enum types') would be complicated in Go by hellcow on Saturday December 07, 2024 @11:06AM (#42350626)
I've been using `Null[T any] struct { V T, Valid bool }` for this, as the pattern comes from database/sql. Works fine.

There are no comments on this comment yet.