-
Notifications
You must be signed in to change notification settings - Fork 14
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
Make better enums #8
Comments
I like that idea... I cant really think of any more efficient ways to support cleaner syntax that doesnt screw with the generated changes or in some other way make life harder... |
LiamM32
added a commit
to LiamM32/raylib-d
that referenced
this issue
Mar 27, 2024
LiamM32
added a commit
to LiamM32/raylib-d
that referenced
this issue
Mar 27, 2024
LiamM32
added a commit
to LiamM32/raylib-d
that referenced
this issue
Mar 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All enums in raylib are super-verbose, owing to the fact that C doesn't do namespaces really. So things like
KeyboardKey.KEY_A
are painfully verbose.It might make sense to make a raylibenum module that uses static compilation techniques to redefine the enums into a nicer enum system (e.g.
Key.A
) I'm picturing something like:The text was updated successfully, but these errors were encountered: