>
> Should it be possible to write a type constraint that would allow me to 
> eliminate this projection function parameter, and instead have the compiler 
> mandate and ensure that for a given type E, the related type *E 
> implements Object?
>

I realized that this desire may be addressed by the *No way to express 
convertibility* section 
<https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#no-way-to-express-convertibility>
 
of the *Type Parameters Proposal* document.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2072c284-66b9-4a81-adb4-f5635c0ab49en%40googlegroups.com.

Reply via email to