bradcypert / ghast

A Go framework that is scary good (I hope)
Apache License 2.0
8 stars 4 forks source link

[CONTAINER GENERICS THREAD] - Containers should use generics #55

Open bradcypert opened 2 years ago

bradcypert commented 2 years ago

When we have support for generics, the container should use them. Let's use this issue to plan out how that will look.

tsal commented 2 years ago

Development / spike work is now possible with GoLand 2021.3.1 and 1.18beta1. I think our first step would be spike work in determining how we want to go about it.

There's a few ways we could do it, but also some constraints .. with constraints.. that I found in some testing on my end. Namely, if we create a type constraint definition, any interfaces we include in the union must not have method signatures in their interface definition. Meaning, we could use string or []byte or other types, but interfaces get tricky. I think that really just excludes fmt.Stringer in this case, but it's important to note when planning this out.

tsal commented 2 years ago

also, mind assigning this to me as well? This could be something we could pair code in a weekend.