|
|
|
|
|
by jopsen
3158 days ago
|
|
Once you accept that the golang type system can't enforce everything your life will be easier. Use rust or Haskell if you want a powerful type system that can do fancy things. golang is great, but you have to accept that some things are runtime errors, and that's fine, it keeps things simple.
How often are options given conditionally anyways? Simple tests will cover this in most cases. |
|