You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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: