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

Implement API as conversions #5

Open
Plecra opened this issue Oct 20, 2020 · 1 comment
Open

Implement API as conversions #5

Plecra opened this issue Oct 20, 2020 · 1 comment

Comments

@Plecra
Copy link

Plecra commented Oct 20, 2020

Since the bools returned by the APIs represent the guarantee made by the str type, it could be used to make the contract clearer for users. It'd also mean users aren't forced to use unsafe code with the library.

@ArniDagur
Copy link
Owner

That's a great idea! However, I want to expose both since some people may want to check if a string is UTF-8 without converting it to string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants