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

Error code addition #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FrancisBourre
Copy link

Error code additions. Not convinced by this PR, I mean, wouldn't be better to refactor TypedError constructor to accept an Abstract instead of a closed enum, and make multiple enums possible relying on this abstract? It would allow anyone to extend the list from outside and keep pattern matching possible.

…etter to refactor TypedError constructor to accept an Abstract instead of a closed enum, and make multiple enums possible relying on this abstract? It would allow anyone to extend the list from outside and keep pattern matching possible.
@FrancisBourre
Copy link
Author

I was thinking about something like this (should be retro-compatible): https://try.haxe.org/#e064d

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