Skip to content

[FEATURE] Generics for v2 release of go-sdk #158

Open
@skyerus

Description

@skyerus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions