-
Notifications
You must be signed in to change notification settings - Fork 4
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
[events] Consider events enumeration #6
Comments
I was thinking about this and I suppose moving onwards when having lots of modules that all emit events this is going to be necessary for both IDE hinting of native events, avoiding event overlapping (maybe providers would be responsible for event registering?) and consistency among packages (this is more of our internal issue, not entirely on experanto, but yeah). Might do for an interesting read: Maybe something like Then in each non-core module you'd register your own implementation:
and in event registration you could use is like this
and This would I guess force developers to think about their event structure and also allowed anyone just to open the file with This is just a random thing that now came to my mind, it e.g. would have to be changed somewhat to get IDE hinting. But I think it's a step in a right direction and maybe you can think of something better based on this. |
closed by #43 |
Would be nice to standardise all native/framework events under an enumeration instead of using the
app.package.event
notation.The text was updated successfully, but these errors were encountered: