File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -378,14 +378,8 @@ helping for type inference.
378
378
In Julia 1.8 and higher, it is favorable to use [`@assume_effects`](@ref) instead of `@pure`.
379
379
This is because `@assume_effects` allows a finer grained control over Julia's purity
380
380
modeling and the effect system enables a wider range of optimizations.
381
-
382
- !!! note
383
- In Julia 1.10 this is deprecated in favor of [`@assume_effects`](@ref).
384
- Specifically, `@assume_effects :foldable` provides similar guarentees.
385
381
"""
386
382
macro pure (ex)
387
- f, l = __source__. file, __source__. line
388
- @warn " `Base.@pure ex` at $f :$l is deprecated, use `Base.@assume_effects :foldable ex` instead."
389
383
return esc (:(Base. @assume_effects :foldable $ ex))
390
384
end
391
385
You can’t perform that action at this time.
0 commit comments