Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0eea1814d8b63fa0d88736a5d2da4e9f2a95276d
Ticket: 3598385fffffffffffffffffffffffffffffffff
[dict exists] doesn't produce an error for non-dict values
User & Date: ferrieux on 2012-12-27 02:09:46
Changes

  1. icomment:
    OK, here's my reasoning:
    Turning a tristate (bool + error) into a boolean loses information: what's gained by this intentional loss ?
    Given a tristate, a simple [catch] restores the simple yes/no behavior that seems to be so important.
    While with the current state, the accidental un-dictness of a value is silently disguised as an empty dict.
    Would you advocate for [lsearch] to just return false when SetListFromAny fails ?
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"