|
2004-10-04
| ||
| 14:55 | • Closed ticket [883848ffff]: clarify/change dict set specification plus 7 ... artifact: 9949322ff9 user: dkf | |
|
2004-01-27
| ||
| 18:08 | • Ticket [883848ffff]: 1 change artifact: d2900cebea user: dkf | |
| 16:28 | • Ticket [883848ffff]: 4 changes artifact: c934d9a305 user: dkf | |
|
2004-01-24
| ||
| 22:08 | • New ticket [883848ffff]. artifact: 0e28ef6cc3 user: cnassau | |
clarify/change [dict set] specification
Closed / Fixed883848ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-01-24 22:08:08
Hi,
I would like to suggest that the specification of "dict
set" should be clearer with regard to missing
sub-dictionaries: the question is what
dict set dictVar $k1 $k2 ... $kn $value
should do if the sub-dictionary for the key sequence
$k1, ..., $k{n-1} does not yet exist in $dictVar. I
suggest that such sub-dictionaries are silently created
as needed.
(A recent related discussion can be found on the
Tcl'ers Wiki page for the dict command.)
dkfplain2004-01-27 16:28:48
Logged In: YES user_id=79902 I'm not at all sure that magical creation is a good idea (it can conceal stupid bugs of the "hit the space key in the wrong place" variety, which I know *I* am inclined to make!) but I'll review the TIP and the documentation to be sure before commenting further.
dkf Ticket [883848ffff]: 1 change
[History diff]2004-01-27 18:08:42
dkfplain2004-10-04 14:55:54
Logged In: YES user_id=79902 Discussed further in Tcl Bug 1037235; this was not the behaviour as it stood, but it seems it was the behaviour that everyone expected and the documentation was underspecified. :^/
Log in (anonymous is fine) to add a comment.