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
Sometimes one wants to unpack values of two similar (or the same) types in a local scope and then variable names clash. A typical example is implementing an operator or some types, eg
function Base.==(x::MyAB, y::MyAB)
x.a == y.a && x.b == y.b
end
Cf common-lisp:with-slots. I wonder if there is some syntax we could co-opt for this purpose.