|
|
|
|
|
by salmonellaeater
84 days ago
|
|
I've found the opposite. Go doesn't even have sum types, so it's hard to use constructive data modeling techniques to model the domain. The only tool available for ensuring exhaustive handling of all cases is interfaces (Visitor pattern) which is verbose. |
|
Having to over express the data model everywhere is precisely what makes AI good at using it.
Does the code suck to read? Sure, but I don't really do that very often anymore anyway.
In this case, the verbosity of go is a feature not a bug.
I guess it depends what your optimizing for, good code or fast turn around without needing to constantly remind the AI about certain type behaviors.