Skip to content

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