[API Proposal]: Collection Expressions and String.Empty
#8316
Unanswered
TonyValenti
asked this question in
Language Ideas
Replies: 2 comments 6 replies
-
If anything, wouldn't it make sense to emit "" as string.empty? That's assuming that this has any advantage over it (on that, there's #8300) |
Beta Was this translation helpful? Give feedback.
0 replies
-
How so?
Why? How are you defining "niceness" here? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background and motivation
It would be really convenient if
[]
could be used as a shorthand forString.Empty
.API Proposal
I am not sure what is necessary to make this possible.
API Usage
Alternative Designs
We could leave it as-is.
Also, someone could just use
""
but that isn't as nice as [].Risks
No response
Beta Was this translation helpful? Give feedback.
All reactions