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

Differentiate exception extensions #6954

Merged

Conversation

DZakh
Copy link
Member

@DZakh DZakh commented Aug 16, 2024

Adds ext_is_exception field to the extension_constructor type. It can be used to differentiate between exceptions and normal extension types. Currently used in one place for error message (the place existed before, made it use the ext_is_exception instead of figuring out it itself).

I believe the change is the first step to split extension types and exceptions representations.

@DZakh DZakh marked this pull request as draft August 16, 2024 16:17
@DZakh DZakh force-pushed the differentiate-exception-extensions branch from 2c7cf89 to e6e56ff Compare August 17, 2024 11:18
@DZakh DZakh marked this pull request as ready for review August 17, 2024 14:12
@DZakh
Copy link
Member Author

DZakh commented Aug 17, 2024

This ext_is_exception is not used much in the PR, but let's merge it, since other changes are going to be much bigger.

@cristianoc
Copy link
Collaborator

Would you add a description on top of the PR indicating what it does?
Is it just refactoring or does it add/change functionality?

@DZakh
Copy link
Member Author

DZakh commented Aug 17, 2024

Would you add a description on top of the PR indicating what it does? Is it just refactoring or does it add/change functionality?

Done

@cristianoc cristianoc requested a review from cometkim August 17, 2024 16:19
@cknitt cknitt merged commit 88c9a20 into rescript-lang:master Aug 21, 2024
20 checks passed
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.

4 participants