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

Properties/Methods inside enums? #10208

Closed
ALANVF opened this issue Apr 9, 2021 · 5 comments
Closed

Properties/Methods inside enums? #10208

ALANVF opened this issue Apr 9, 2021 · 5 comments

Comments

@ALANVF
Copy link
Contributor

ALANVF commented Apr 9, 2021

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.

@Simn
Copy link
Member

Simn commented Apr 9, 2021

This proposal has been rejected and closed. Simply opening another issue with the same goal isn't going to change anything.

@Simn Simn closed this as completed Apr 9, 2021
@ALANVF
Copy link
Contributor Author

ALANVF commented Apr 9, 2021

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

@ALANVF
Copy link
Contributor Author

ALANVF commented Apr 9, 2021

It was closed nearly 5 years ago, I thought that maybe y'all would be willing to consider it again

@Gama11
Copy link
Member

Gama11 commented Apr 9, 2021

It was closed nearly 5 years ago

Simn closed this on Sep 21, 2018

@ALANVF
Copy link
Contributor Author

ALANVF commented Apr 9, 2021

*opened 5 years ago

Still, 3 years is a pretty long time

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

No branches or pull requests

3 participants