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
This is not a bug but if the := already allows for some of the variable to
be old, why not allow for them all to be old?
for instance I would like to have
a, b := Called(x)
...
a, b := Called(a*b)
as it does not really affect the usability if this was relaxed.
The text was updated successfully, but these errors were encountered:
One could argue in favor of strengthening the check and requiring all variables to be
new. The way it stands, you can't tell by looking at short declaration of multiple
variables which, if any of the variables are existing. You have to read back through
the code and hunt for previous declarations of each variable. If I add a short
declaration to some code, I might like the compiler to complain if I am stepping on
an existing variable.
by vincent.risi:
The text was updated successfully, but these errors were encountered: