-
Notifications
You must be signed in to change notification settings - Fork 786
Harden exnref literals #3092
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
Harden exnref literals #3092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, but we should still aim to switch to using std::variant
at some point.
(will still take me a while to get used to this 😄) |
I don't understand what this is about? |
Do you mean the PR in general or my last comment? |
In general. I think it is better to make a PR description self-contained and understandable without reading another big PR and to other people who didn't review that big PR. |
Sorry again, I thought the description is fine. To give some context:
Other code sets
Previously one could construct
Previously the signature of While I can't undo merging this already, does this better explain the changes? |
This doesn't matter. |
Just not yet, since master is still using
Oh, interesting, didn't know. This part of the change is indeed unnecessary then. |
Outsourced safety guards for
exnref
Literal
s I came up with in #3084.Literal::type
immutable to guarantee that we do not lose track ofLiteral::exn
by changing the literal's typeexnref
literals without anExceptionPackage
(for now)exnref
Literal from astd::unique_ptr<ExceptionPackage>
, avoiding a redundant copy by means of requiringstd::move