-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Properties/Methods inside enums? #10208
Comments
This proposal has been rejected and closed. Simply opening another issue with the same goal isn't going to change anything. |
Well there was no reasoning as to why it was rejected. I wanted to ask because it seems very simple to implement and add to the language |
It was closed nearly 5 years ago, I thought that maybe y'all would be willing to consider it again |
|
*opened 5 years ago Still, 3 years is a pretty long time |
I saw that HaxeFoundation/haxe-evolution#10 was closed, but I'm not sure why it couldn't happen seeing how the change is so trivial.
I (and many others) would find this feature very helpful, as static extensions are not a solution, and enums are fully capable of having their own properties (even if it's just static properties and instance getters/setters) and methods.
Enums do not currently support inheritance or implementing interfaces (although I would not be against adding them), so there would be no additional overhead for allowing properties/methods.
I'll even implement it if needed, but I figured I'd ask first before working on it.
The text was updated successfully, but these errors were encountered: