Re:Using Rust at a Startup: A Cautionary Tale
by Zagill on Tuesday November 22, 2022 @09:55PM
(#33714585)
I'm not familiar with algebraic data types, what's missing from Go that makes that impossible? Sounds about like defining structs/other custom types before writing any method bodies, which is what I'd typically do in a Go project.
Re:Using Rust at a Startup: A Cautionary Tale
by satvikpendem on Tuesday November 22, 2022 @09:59PM
(#33714607)
> what's missing from Go that makes that impossible?
The language maintainers don't want to add it: https://github.com/golang/go/issues/19412
I also don't use much Go because it lacks good algebraic data type support, honestly can't imagine going back to a language that doesn't have them as I like to define all my business logic in types and then build the actual application from there. Go simply doesn't have that capability.