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

Use .cast() instead of as for type casting pointers #7

Open
ok-nick opened this issue Jun 21, 2022 · 1 comment
Open

Use .cast() instead of as for type casting pointers #7

ok-nick opened this issue Jun 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ok-nick
Copy link
Owner

ok-nick commented Jun 21, 2022

There are no behavioral changes by favoring .cast() over as casts, but using the method generally looks better and is easier to write. Overall, it feels more strict and concise, as as casts could be pretty lenient.

@ok-nick ok-nick added the enhancement New feature or request label Jun 21, 2022
@ok-nick
Copy link
Owner Author

ok-nick commented Jun 21, 2022

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

No branches or pull requests

1 participant