Re:A rough proposal for sum types in Go (2018)
by pkaye on Monday November 15, 2021 @04:25PM
(#29232980)
So why not use Rust instead since it already implements sum types?
[ Parent
| on HN ]
Re:A rough proposal for sum types in Go (2018)
by tialaramex on Monday November 15, 2021 @04:50PM
(#29233268)
They said they liked sum types, that doesn't automatically mean they want to learn Rust. I liked the STL containers when I read about them in the 1990s, but I don't like C++ and the existence of the containers did not change that.
Re:A rough proposal for sum types in Go (2018)
by kadoban on Monday November 15, 2021 @05:36PM
(#29233824)
Because I have a job and am not yet a dictator at my company for technical decisions.
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.