-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use pattern matching for multi-kind checks #64108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the performance concerns still hold?
cc @sharwell
I have never once seen a single trace demonstrating that this matters in practice. Regardless, these methods were not created for perf, they were created to make it more pleasant to do checks way back before we had basic language features for this. |
ping @dotnet/roslyn-ide thanks! |
These extensions existed prior to the language having pattern matching. Now that we have that lang facility there isn't a need for it and we can use the more idiomatic built in mechanism.