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

Prefer Concat on interpolated strings with 4 or less string parts #54726

Merged
merged 6 commits into from
Jul 12, 2021

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jul 9, 2021

Fixes #54702. This does not implement any changes to prefer concat for ReadOnlySpan: doing so will require a deeper change of the local rewriter's handling of string concatenation that we can revisit at a later date if we so choose.

Fixes dotnet#54702. This does not implement any changes to prefer concat for ReadOnlySpan<char>: doing so will require a deeper change of the local rewriter's handling of string concatenation that we can revisit at a later date if we so choose.
@333fred 333fred requested a review from a team as a code owner July 9, 2021 22:08
@333fred 333fred added the Feature - Interpolated String Improvements Interpolated string improvements label Jul 9, 2021
@333fred
Copy link
Member Author

333fred commented Jul 9, 2021

@dotnet/roslyn-compiler for a second review.

@stephentoub
Copy link
Member

Thanks!!

@333fred
Copy link
Member Author

333fred commented Jul 12, 2021

@dotnet/roslyn-compiler for a second review.

@333fred 333fred merged commit 254e56e into dotnet:main Jul 12, 2021
@ghost ghost added this to the Next milestone Jul 12, 2021
@333fred 333fred deleted the concat branch July 12, 2021 22:22
@allisonchou allisonchou modified the milestones: Next, 17.0.P3 Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler is preferring using the default interpolated string handler over string.Concat
6 participants