dotnet / dotnet/csharplang

Champion "Support for == and != on tuple types" (15.7)

Open
#190 72 comments 38 reactions 1 assignee Claimed by @jcouv View on GitHub
Implemented Needs ECMA Spec Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

## Summary

Support == and != on tuples.
For example `(x, y) == (1, 2)` (which would be equivalent to `x == 1 && y == 2`).

- [x] Proposal added (https://github.com/dotnet/csharplang/pull/967)
- [x] Discussed in LDM
- [ ] Decision in LDM
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

See also https://github.com/dotnet/roslyn/issues/13155

LDM history:
- https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-02-21.md#implementing--and--on-tuple-types
- https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-12-04.md#equality-operators-on-tuples

Started prototype at [tuple-equality](https://github.com/jcouv/roslyn/tree/tuple-equality)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.