Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 024c68e856270f5418cfa3a709ffb76abce8bf31
Ticket: f9c3463120117afc9c86cbfe2d57da81dbc942e4
Proposal syntax for list
User & Date: anonymous 2016-08-29 19:39:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    This is a proposal of a change in Tcl syntax:
    
    When I want to create a big datastructure (with lists or dicts), I like to write the code in serveral lines for clarity. The problem with this expression: [comand_name arg0 arg1 arg2...] is that backslash are necessary if I want to write that expression in several lines. It's a little bit cumbersome:
    
    set big_data_strucutre [dict \
                              key1 value1 \
                              key2 value2 \
                              key3 [list item1 item2 item3] \
                              key4 value4 \
                              key5 [list item1 [list item21 item22]] \
                              key6 value6]
    
    Maybe it's better to make backslash optional inside square brackets (similar to braces). It's more clear and it's not necessary to type so much:
    
    set big_data_strucutre [dict 
                              key1 value1 
                              key2 value2 
                              key3 [list item1 item2 item3] 
                              key4 value4 
                              key5 [list item1 [list item21 item22]] 
                              key6 value6]
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Proposal syntax for list"
  16. type changed to: "RFE"