Skip to content

Should we optimize or deprecate string.Empty in C#? #73123

Answered by CyrusNajmabadi
tats-u asked this question in Q&A
Discussion options

You must be logged in to vote

wouldn't it?

I don't see why that's the case, no. What's the tangible benefit to this? We have effectively infinite work and things that can be focused on. We should do things because of the real benefits they bring, otherwise, we're taking away time from much more beneficial things.

Is it true C#/.NET team officially doesn't recommend either of two more strongly (= recommend both in equal measure)?

I don't think we care on the C# team. Use whichever you think is best in your code.

The runtime is not only the cutting-edge .NET but matured .NET Framework,

We're not making optimization decisions based on .NetFx. If you want optimized, use .Net Core (which is often multiple times faste…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tats-u
Comment options

@CyrusNajmabadi
Comment options

Answer selected by tats-u
@tats-u
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants