-
Notifications
You must be signed in to change notification settings - Fork 99
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
[Feature Request] Use packed structs for config enums #93
Comments
alexmozaidze
changed the title
[Feature Request] Use packed structs instead of enums for options
[Feature Request] Use packed structs for config enums
May 17, 2024
Good idea, but I'd like to but the casting into the proxy functions we have anyways, so we'll have to integrate it into |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Packed structs with only booleans as fields can be interfaced like a struct, and then easily converted to an integer. Such approach is better than plain enum, since one does not have to convert enum to an int and then back every time to change the config.
Example:
The text was updated successfully, but these errors were encountered: