Overview
| Artifact ID: | d966564f7f8cf39274841f9893d9e832b42a532c |
|---|---|
| Ticket: | 1092508fffffffffffffffffffffffffffffffff
Tutorial implies false quoting requirements |
| User & Date: | dgp on 2004-12-29 02:34:19 |
Changes
- assignee changed to: "davidw"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.5a3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "75. Tutorial"
- title changed to: "Tutorial implies false quoting requirements"
- type changed to: "Bug"