Re:Ten Years of “Go: The Good, the Bad, and the Meh
by packetlost on Tuesday July 18, 2023 @12:33PM
(#36775227)
I would have taken sum types over generics, personally. It kinda sucks because you can't create something like Rust's `?` operator without them or making serious kludgy compromises.
Re:Ten Years of “Go: The Good, the Bad, and the Meh
by whimsicalism on Tuesday July 18, 2023 @12:23PM
(#36775021)
Yes, sum types would solve the problem - you are both identifying the same issue imo
Although I guess that feeds into eachother, sum types would eliminate any need for null types in the first place.