Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ad3a794ca670f210417b9a75c0480a96722ed0df
Ticket: 1714317fffffffffffffffffffffffffffffffff
dict get -default
User & Date: dkf on 2007-05-07 13:54:14
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [14:44]Colin[dict get? $x $y] is essentially [expr {[dict exists $x $y]?[dict get $x $y]:""}]
    [14:44]Colinit's quite useful and makes the code cleaner.
    [14:45]dkfI've thought about defaults, but the problem is that [dict get] has run out of syntax holes
    ...
    [14:48]dkftheoretically, there's a single hole left
    [14:48]dkf[dict get -default "foo" -- $dict $key ...]
    [14:51]Colindkf, please consider adding the facility, it is useful.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dkf"
  10. subsystem changed to: "15. Dict Object"
  11. title changed to: "dict get -default"
  12. type changed to: "RFE"