Skip to content

tentative v2 structure#3

Open
EvaLok wants to merge 7 commits intomasterfrom
travis-to-workflows
Open

tentative v2 structure#3
EvaLok wants to merge 7 commits intomasterfrom
travis-to-workflows

Conversation

@EvaLok
Copy link
Owner

@EvaLok EvaLok commented Jan 10, 2025

this may be reasonable, going to think on it for a bit and consult with some friends in regard to a few things i'm unhappy with, specifically:

  • need to check if there is a way to avoid needing a union type on an abstract for UserDefinedEvent|Event on handle method of a Handler
  • want to see if there are some equivalents or at least something close to generics that can help to improve typing

in any case this is an improvement over the previous code which was showing its age after almost 10 years.

- obviously this would be easier with generics, right now there's an issue where we need to have `UserDefinedEvent|Event` on the `handle` argument type declaration which feels unnecessary since `Event` is abstract..
@EvaLok EvaLok self-assigned this Jan 10, 2025
- also corrected casing to be consistent with static method
@EvaLok EvaLok changed the title tenative v2 structure tentative v2 structure Jan 10, 2025
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.

1 participant