Skip to content
Discussion options

You must be logged in to vote

The main benefit I was looking forward to was replacing all my ReferenceEquals(x, y) with x is y syntax

I would disagree that x is y is beneficiary over ReferenceEquals(x, y). The latter is explicit, while the former is vague. With all pattern matching going around, one will have to remember what is means in this case.

Related to that, there were multiple proposals of allowing the user to reinterpret is. This proposal conflicts with those.

I'd rather have flexibility over is reinterpretation, than a hardcoded "reference equality" semantics.

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alrz
Comment options

You must be logged in to vote
1 reply
@alrz
Comment options

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

This discussion was converted from issue #540 on October 13, 2020 05:39.