Skip to content

does carbon support type erasure for Comparable? #4535

Discussion options

You must be logged in to vote

Thanks, I think what you're looking for then is variadics with checked generics which is not finished but is mentioned here with some links: https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/generics/details.md#variadic-arguments

Edit: If not, then maybe you're looking for a container, which would use checked generics as its type. That should follow from the original link, it may just not be called "type erasure" directly. But a checked generic can be used as a type for a container.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fililili
Comment options

@danakj
Comment options

danakj Nov 18, 2024
Collaborator

Answer selected by fililili
@geoffromer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants