-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Create empty method for String class #6293
Conversation
@d-a-v, this brings to mind the constant emptyString. Your thoughts? |
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.
@d-a-v wrote:
Of course me too, |
Changed method name from "empty" to "isEmpty". Created a new method to empty a string
@ruggi99 |
Changed method name from "empty" to "clear".
I've done. I think |
@d-a-v wrote:
No excessive consideration about the PR, it's merely proposal :) |
I think this is a good idea |
It marks it as empty without any kind of reallocation, I guess this is what to be expected for this call.
Why has it been closed ? |
It was premature I guessed. |
No description provided.