Crimes with Go Generics
I don’t think the Option presented here is sufficient (it is indeed a “crime”) as you cannot express Some(nil).<p>But you could probably achieve that using go's not-well-known sum types, e.g. like this<p><a href="https://github.com/FSMaxB/type-safe-builder-experiment/blob/master/go/builder/staticOptional.go" rel="nofollow">https://github.com/FSMaxB/type-safe-builder-experiment/blob/...</a>