Skip to content

C# 7.3: support == and != on tuple types  #3965

Closed

Description

@BillWagner

Here's the spec: dotnet/csharplang#190

There are several things to discuss for this feature.

My notes here are based on an early draft of the spec. See the reference above for details.

  • We need to discuss how lifting works for tuples that have value types compared to tuples with nullable value types: (int, int) == (int?, int)
  • Lifting also applies to the tuple itself: (int, int) == (int, int)?
  • Conversion operators and deconstruction will not apply for type equality.
  • member names are not part of the equality comparison

This will update the references on tuples, but likely won't introduce new articles.

Activity

  1. added this to the Backlog milestone on Dec 18, 2017
  2. BillWagner commented on Mar 26, 2018

    @BillWagner
    MemberAuthor

    The updated proposal is here

  3. self-assigned this
    on Apr 30, 2018
  4. added a commit that references this issue on Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions