News for hackers. Stuff that matters.
Re:Ten Years of “Go: The Good, the Bad, and the Meh by ilyt on Tuesday July 18, 2023 @12:19PM (#36774952)
Lack of sum types and thus impossibility of just having Result<T,E>-like type for returning errors is bigger one for me, I didn't get bitten by nulls all that much in Go

Although I guess that feeds into eachother, sum types would eliminate any need for null types in the first place.

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