News for hackers. Stuff that matters.
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.