I don't see any advantage in using your proposed notation to write arrays (and I do see several if the standard form is used).
For example, if you want to use part of a susbcript, I think that
... is clearer than
... because in the first case the subscript is clearly delimited by the square braquets.
If you want to replace part of an array element, I think that
Code: Select all
set "value=!var[%index%]:old=new!"
... is clearer than
Code: Select all
set "value=!__var%index%:old=new!"
... because in the second case there is not any clear delimiter of the parts, besides the characters of the notation themselves.
But perhaps you could point me to some advantage of your "more general" notation...
Antonio