News for hackers. Stuff that matters.
Re:A rough proposal for sum types in Go (2018) by ziml77 on Monday November 15, 2021 @04:39PM (#29233147)
Because Rust throws out the GC which means that you have to deal with complexities of lifetime management.

(I don't agree that sum types should be added to Go, as much as I dislike the language as it is)

Re:A rough proposal for sum types in Go (2018) by BenFrantzDale on Monday November 15, 2021 @09:43PM (#29236101)
As someone coming from C++ I don’t comprehend this complaint. How do you even do anything in a language without deterministic destructors? All my experiences with garbage collection have been painful. RAII is so much easier to use.
Re:A rough proposal for sum types in Go (2018) by azth on Monday November 15, 2021 @10:39PM (#29236499)
For resource management, Java/C# have try-with-resources/using statements. Python has `with`, golang has "defer".

GC addresses other issues like memory sharing, cyclic data structures, etc.