variables and arrays can have the same name
Created by: dns2utf8
Reproduction:
user:/tmp# let xs = [ one two 'three four' ]
user:/tmp# echo @xs
one two three four
user:/tmp# let xs = 42
user:/tmp# echo $xs
42
user:/tmp# echo @xs
one two three four
Expected behavior:
user:/tmp# let xs = [ one two 'three four' ]
user:/tmp# echo @xs
one two three four
user:/tmp# let xs = 42
### error ###
issue an error message and deny the set or override the array
Actual behavior: Well, it allows the double use.
Build information:
installed with cargo install
ion-shell v1.0.5
Blocking/related:
Misc: In my opinion the feature or storing the arrays and the variables in different namespaces will cause a lot of confusion and head scratching.