Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9e91b0f00e4a8bf92c7a2e457bbfa99202acc0b9f4f7e398cbc25b6cf4a5935b
Ticket: bd45a0e32a1ce6cb1b4d0629e538da8fe94c1e65
lappend puts some args in braces if they start list
User & Date: sebres on 2018-08-13 19:15:18
Changes

  1. closedate changed to: "2458344.30230047"
  2. closer changed to: "sebres"
  3. icomment:
    String representation of list-type is not constructed for "consistent" reasons as you meant it, but primary for example to follow the EIAS magic (see https://wiki.tcl.tk/3018), resp. secondary to avoid the lost of the list representation in case of interim type switch (e. g. list -> unicode, -> dict, etc. and then back to list by usage of lindex for example).
    
    Additionally Tcl follows "the shorter the better" strategy in the canonical form, so basically if possible the shortest will be preferred (even with some exceptions, like for the first argument for already explained reasons).
    The $, some constellations with backslashes, non-balanced quotes and another special characters could cause a string representation that are totally impossible without usage of braces, therefore it will be escaped this way.
    
    If you try to work with the string representation of list using something other as "list" primitives and API functions, you should be ready to experience many other surprises...
    
  4. login: "sebres"
  5. mimetype: "text/plain"