Skip to content

Determine whether generic math interfaces need to express variance #74148

Open
@stephentoub

Description

@stephentoub

See discussion in #74025 (comment). The question is whether the new generic math interfaces being introduced in .NET 7 should express co/contravariance (in and out on the various generic type parameters), e.g. 197d96f. It's not clear if there are meaningful scenarios for it or if adding them now could conflict with future language work, but it could also be a breaking change to add them later.

Seems likely we should just leave them as-is, but we should make an explicit decision.

Metadata

Metadata

Assignees

Labels

area-System.NumericsdocumentationDocumentation bug or enhancement, does not impact product or test code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions