Skip to content

Update 0840-no-panic-in-c-string.md #908

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

Merged
merged 1 commit into from
Mar 5, 2015
Merged

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Feb 25, 2015

Added an alternative design which renames the currently used functions.

Added an alternative design which renames the currently used functions.
@llogiq
Copy link
Contributor Author

llogiq commented Feb 25, 2015

Rationale: I think the panicky functions are easier to use if the programmer knows that the strings contain no Null chars, so keeping them, but renaming them to show that they unpack the slice/vec seems a superior alternative.

@alexcrichton
Copy link
Member

Thanks for the extra alternative!

alexcrichton added a commit that referenced this pull request Mar 5, 2015
Update 0840-no-panic-in-c-string.md
@alexcrichton alexcrichton merged commit b906439 into rust-lang:master Mar 5, 2015
@Centril Centril added the A-panic Panics related proposals & ideas label Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-panic Panics related proposals & ideas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants