title: Neatly listing values in multiple lines
body: <p>How does one list values in multiple lines without a backslash at the end of each line?</p>
  
  <p>One can't create a list in multiple lines without having a backslash at the end.<br>
  For example, the following (<em>wrong</em>) code:</p>
  
  <pre><code>set pets [list 
      cat
      dog
      elephant
  ]
  </code></pre>
  
  <p>gives an error:</p>
  
  <pre><code>invalid command name "cat"
      while executing
  "cat"
      invoked from within
  "set pets [list
          cat
          dog
          elephant
  ]"
  </code></pre>
  
  <p>It can be fixed by appending a backslash at the end of the line:</p>
  
  <pre><code>set pets [list \
      cat \
      dog \
      elephant \
  ]
  </code></pre>
  
  <p>Which is ugly and prone to errors.</p>
  
  <p>Please note that:</p>
  
  <ul>
  <li>I'm aware of using the curly braces (<code>{</code> &amp; <code>}</code>), but it doesn't allows executing commands and also keeps redundant whitespace characters.</li>
  <li>Any other command may be used (e.g. <code>dict create</code>), not only <code>list</code> as in my example.</li>
  </ul>
  
  <p>Using Tcl 8.5</p>