Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9e99c889e69ef184648832f73c31893982ddd43
Ticket: 883865ffffffffffffffffffffffffffffffffff
Add ?-nocomplain? switch to [dict get]
User & Date: cnassau on 2004-01-24 22:40:19
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Currently TIP 111 declares that
    
       dict get $dictVal $k1 $k2 ... $kn 
    
    throws an error if $dictVal does not contain a value
    for the given key sequence. I would suggest to add a
    switch ?-nocomplain? where "dict get" would simply
    return an empty string in this case. 
    
    There is a recent related discussion on the dict page
    of the Tcl'ers Wiki. There I tried to make the point
    that there are legitimate use cases where the
    distinction between a non-existing key and a key with
    an empty value is deliberately blurred.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "cnassau"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "Add ?-nocomplain? switch to [dict get]"
  11. type changed to: "RFE"