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

Rename transmute! to something else #2303

Open
mitsuhiko opened this issue Feb 6, 2025 · 0 comments
Open

Rename transmute! to something else #2303

mitsuhiko opened this issue Feb 6, 2025 · 0 comments
Labels
customer-request Documents customer requests.

Comments

@mitsuhiko
Copy link

The difference of transmute and transmute! is a single character, but one function requires unsafe the other doesn't. I find it not uncommon from a quick scan over where I could use this crate to still have transmute for other reasons in scope.

I wonder if the names checked_transmute! or safe_transmute! wouldn't be better names to make this clearer when reviewing code.

@mitsuhiko mitsuhiko added the customer-request Documents customer requests. label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-request Documents customer requests.
Projects
None yet
Development

No branches or pull requests

1 participant