Open
Description
Requirements
Now the go-sdk has been upgraded to go 1.18 it can make use of generics.
The obvious candidates where leveraging generics would reduce bloat:
- Evaluation types are effectively the same structure with different
Value
types - Resolution types, as above, are effectively the same structure with different
Value
types
Pros:
- Less types to maintain
- Less duplicated code
- Less type inference
- Less chance of accidental inconsistent behaviour across types
Cons:
- Breaking change
- Breaks contract between providers and sdk
Perhaps this undertaking isn't worth the effort but it's at least worth raising.