-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
remove unnecessary ::Union{} type asserts #35817
Conversation
I think they were there for performance reasons. Renaming to |
I didn't notice any difference in generated code. Only some instructions that converted the type assert was gone in the PR version (these where in dead code though). So I don't think there is a performance reason anymore at least. |
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.
LGTM, though I agree these could be renamed to something indicating that they are error checks, or throw functions respectively.
Updated the names. |
d7bf2d8
to
ef8b507
Compare
ef8b507
to
88779c7
Compare
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.
Thanks Kristoffer! :)
The package_win32 failure appears unrelated
|
* remove unnecessary ::Union{} type asserts
Are these here for documentation purposes? Could rename the functions as
throw_...
something instead then.