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.
The text was updated successfully, but these errors were encountered:
Fixesmauro3#18.
Incidental changes:
- wrap some tests into testsets, so that we can use `@isdefined` in tests
- add more validation of input expressions, test for expressions that
are invalid but were expanded and failed with an obscure error message
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
Cf
common-lisp:with-slots
. I wonder if there is some syntax we could co-opt for this purpose.The text was updated successfully, but these errors were encountered: