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 a wrapper type for string buffers #533

Open
SuchAFuriousDeath opened this issue Dec 23, 2023 · 2 comments
Open

Implement a wrapper type for string buffers #533

SuchAFuriousDeath opened this issue Dec 23, 2023 · 2 comments
Labels
T-enhancement Type: Enhancement

Comments

@SuchAFuriousDeath
Copy link
Contributor

In several places where FreeBSD uses [char; N], we currently use String. We could mimic the FreeBSD code more closely while also avoiding heap allocations if we implemented a wrapper type using generics for this, something like ArrayString.

@SuchAFuriousDeath
Copy link
Contributor Author

This was previously suggested in #525

@gandalfthewhite19890404 gandalfthewhite19890404 added the T-enhancement Type: Enhancement label Dec 24, 2023
@ultimaweapon
Copy link
Member

I think it probably better to just stick with str and String to make things simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement Type: Enhancement
Development

No branches or pull requests

3 participants