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
Having: #{key := A, x := X, y := Y, key := B} = ZZZ,
on the left of a pattern is not an error but can be very confusing. It could be a warning.
Having it on the right side of a pattern, or in a free-standing expression — is not an error but most likely is a sign of a typo, or a copy-paste error. ZZZ = #{key => A, x => xxx, y => yyy, key => B}
The text was updated successfully, but these errors were encountered:
In any case, what's so wrong about assigning to two different variables? You'll eventually either use both or only one (if using only one the compiler will already warn you). Is the confusion part the fact that they hold the same value for different names?
Having:
#{key := A, x := X, y := Y, key := B}
= ZZZ,on the left of a pattern is not an error but can be very confusing. It could be a warning.
Having it on the right side of a pattern, or in a free-standing expression — is not an error but most likely is a sign of a typo, or a copy-paste error.
ZZZ = #{key => A, x => xxx, y => yyy, key => B}
The text was updated successfully, but these errors were encountered: