Reference to dictionary variable name in dict commands seems inconsiste
From Lawrence Emke@21:1/5 to All on Tue Apr 25 11:26:17 2023
I understand the syntax to create a dict variable:
set dname [ dict create a b ]
Now compare these two commands:
dict append dname d e
and
dict get $dname d
in the first case the dict name does not require the de-reference $ character. In the second command it does require the deference $ character.
This seems to be confusing. Don't force me to remember which case requires the de-reference $ character and which does not accept the $ character.
Maybe there is a hidden explanation (reason) other than the implementation of the command that does not just pop up to a new student. Please make it consistent. It will save time and effort to learn the language syntax.