You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-constant-propagated integers will lead to type instability if used in a pattern.
julia> a =3;
julia>reduce(sum, x, ((a, :b), ..) --> (:b, ..)); # allowed, but not type stable if `a` is calculated at runtime
julia>reduce(sum, x, ((:a, :b), ..) --> (:b, ..), a=a); # preferred, as the pattern type just has the name
I don't think this would need to happen in a certain macro-based interface (#2 (comment)).