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

Remove the deprecated bytes!() macro #15018

Closed
SimonSapin opened this issue Jun 18, 2014 · 3 comments
Closed

Remove the deprecated bytes!() macro #15018

SimonSapin opened this issue Jun 18, 2014 · 3 comments

Comments

@SimonSapin
Copy link
Contributor

The bytes!() macro is deprecated (see issue #15017) in favor of b"foo" byte literals. It should be removed at some point, preferably before 1.0.

CC @alexcrichton

@steveklabnik
Copy link
Member

This has been removed.

@goertzenator
Copy link

Can this be brought back as "concat_bytes!" ? Byte literals are great, but the concat part has been lost. My use case is to append a null byte to byte literals at compile-time. bytes! would have been great for that. We have concat! and concat_idents!, so concat_bytes! would seem to make sense.

@SimonSapin
Copy link
Contributor Author

Yeah, makes sense. The best way to make it happen is probably an RFC backed by a pull request.

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

3 participants