-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Assume effects #783
Assume effects #783
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #783 +/- ##
==========================================
+ Coverage 91.63% 91.69% +0.06%
==========================================
Files 2 2
Lines 251 253 +2
==========================================
+ Hits 230 232 +2
Misses 21 21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Sorry, I thought this was how all uses of |
It should be generally safe to replace calls to |
More generally, though, packages should revisit every use of |
`@pure` => `@assume_effects :total` but `@assume_effects :total` =/=> `@pure` so just test macro hygiene
I removed the mapping to |
Needs a README entry. |
Co-authored-by: Martin Holters <[email protected]>
Co-authored-by: Martin Holters <[email protected]>
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, but we should get #784 in first and then test on top of that to verify it's working as intended on latest Julia.
That said, I wonder how helpful this is given it cannot be used as a replacement for @pure
without regressions on older Julia. Still better than nothing, though.
@Keno any more thoughts on this?
Can you rebase on (or merge) current master to (hopefully) fix the test failures on nightly? |
Fixes #769
This allows packages with a 1.6 compat to replace
Base.@pure
withBase.@assume_effects :total
similar to what's been done in base. All other effects are ignored