Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d966564f7f8cf39274841f9893d9e832b42a532c
Ticket: 1092508fffffffffffffffffffffffffffffffff
Tutorial implies false quoting requirements
User & Date: dgp on 2004-12-29 02:34:19
Changes

  1. assignee changed to: "davidw"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    In its earliest lessons and examples,
    the tutorial implies quoting requirements
    that do not exist.
    
    Page:
    
    http://www.tcl.tk/man/tcl8.5/tutorial/Tcl2.html
    
    includes the example:
    
        set fruit "Cauliflower"
    
    In the next page, the example includes:
    
         set Z "Albany"
         
    The "..." quoting is legal, but not necessary.
    Using this quoting style in the first examples
    of Tcl commands strongly suggests the
    quoting is necessary. This kind of misimpression
    early on can lead to faulty beliefs that "..." quoting
    creates a "value", or that {...} quoting creates
    a "list".  Better to learn early on (both explicitly
    and by implication) that Tcl's syntax rules
    determine word boundaries and substitution.
    No more; no less.
    
    I believe this quoting style is one
    favored by the TclTutor author as
    a way to indicate programmer intent
    regarding values vs. variable names.
    It's a fine coding convention to
    introduce later on once the precise
    syntax requirements of Tcl are well
    established.  I think the early lessons
    in the tutorial should make use of
    only necessary syntax to avoid any
    confusion about what Tcl requires
    vs. what some coding convention
    recommends.
    
    
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "Tutorial implies false quoting requirements"
  11. type changed to: "Bug"