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

Change event type and log type to structured enum #47

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ruwi-next
Copy link

Hi

I think it would make a better interface if we used enums to represent the event type and log type. It also should be more efficient since we are using a pair of enum instead of a string.

We can also more accurately represent the possible states by nesting the log type in the enum variant where it is applicable.

This does make some assumptions about the combination of event type and log type but I think it is correct.

Any feedback is appreciated

@ruwi-next ruwi-next force-pushed the log-event-type-enum branch from e281db7 to 4603f08 Compare January 6, 2025 18:39
@puffyCid
Copy link
Collaborator

puffyCid commented Jan 11, 2025

hey @ruwi-next thanks for the PR.
This seems reasonable. I merged some larger PRs before this one, could you rebase/resolve conflicts and update the PR?
Will gladly merge after the conflicts are resolved

@ruwi-next
Copy link
Author

Cool I've resolved the conflicts in a merge commit.

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

Successfully merging this pull request may close these issues.

2 participants