Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stale TODO-NULLABLE comments from code #44136

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

stephentoub
Copy link
Member

throw new Exception(SR.Diagnostic_InternalExceptionMessage);
}
return MemberType.GetHashCode() ^ _accessors[0]!.GetHashCode(); // TODO-NULLABLE: Indexer nullability tracked (https://github.com/dotnet/roslyn/issues/34644)
return MemberType.GetHashCode() ^ accessor.GetHashCode();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should this use hash code combiner? cc: @GrabYourPitchforks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HashCodeCombiner is good for things that don't have a great distribution already. One example is a record type where the user is responsible for providing most of the fields, which is likely to see many of the values clustered around the same set of hash codes. Since this hash code calculation routine is using reflection and other runtime objects, there's not as much concern about clustering, since these objects already have good distribution.

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one question about product change

@stephentoub stephentoub merged commit c72678b into dotnet:master Nov 2, 2020
@stephentoub stephentoub deleted the todonullable branch November 21, 2020 01:10
@ghost ghost locked as resolved and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants