Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de24132cb48425219b5e0eaa1f0c6c153184f1af
Ticket: 1482667fffffffffffffffffffffffffffffffff
More detailed information on [if ... else] and spaces
User & Date: zoro2 on 2006-05-05 18:04:15
Changes

  1. assignee changed to: "davidw"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Lately I've been working with people that need to learn 
    Tcl to maintain legacy apps. One of the most common 
    mistakes they do is something like this:
    
    if {$a == $b} {
        puts "A==B"
    }else{
        puts "A!=B"
    }
    
    Since if...else are keywords for most languages, people 
    learning Tcl tend to make such mistakes.
    
    Another one is that people tend not to understand that 
    { after the condition/else needs to be in the same 
    line. It would be useful to mention this as well.
    
    I guess this should go into Tcl4.html and Tcl7.html 
    should reference and revise this.
    
    I would assume this would really help non-Tcl 
    background people to understand these things better.
    
  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: "zoro2"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to:
    More detailed information on [if ... else] and spaces
    
  11. type changed to: "Bug"