3 ms·
> interface contains type constraints > interface is (or embeds) comparable Currently, not all interface types may be used as value types. Such types include
by tapirl 4y ago
> interface contains type constraints
> interface is (or embeds) comparable
Currently, not all interface types may be used as value types.
Such types include comparable.
It is very possible that all interface types could be used as value types in future Go versions, and comparable might be able to be used as value types as early as Go 1.20.