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
When using := in arrays, it should not allocate a new slot if the index is outside the range, since this might lead to confusing bugs. However, it can be used to overwrite the type, for example replacing a number with a string.
a = [5]
a[0] = "hello" // ERROR: Expected assigning to text
a[0] := "hello" // OK
The text was updated successfully, but these errors were encountered:
Similar to #5, but designed for arrays.
When using
:=
in arrays, it should not allocate a new slot if the index is outside the range, since this might lead to confusing bugs. However, it can be used to overwrite the type, for example replacing a number with a string.The text was updated successfully, but these errors were encountered: