Artifacts Associated With Ticket 1092508fffffffff
Ticket change [d966564f7f] (rid 107607) by dgp on 2004-12-29 02:34:19:
- assignee initialized to: "davidw"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.5a3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "75. Tutorial"
- title initialized to: "Tutorial implies false quoting requirements"
- type initialized to: "Bug"
Ticket change [ece6127f2d] (rid 103789) by hobbs on 2004-12-29 09:37:46:
- icomment:
Logged In: YES user_id=72656 While I agree that quoting should be addressed early on (as continued use of "" can lead a person into quoting hell by accident), I should note that I use ""s often where "not necessary" simply because my editor will color it nicely, which is appropriate in context.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [587df2aad4] (rid 117815) by davidw on 2004-12-30 05:53:23:
- icomment:
Logged In: YES user_id=240 I usually use quotes for consistency's sake, but you are indeed correct that people should be shown early on that Tcl is different this way.... you dont' *need* the quotes if you don't have any spaces.
- login: "davidw"
- mimetype: "text/plain"
- username: "davidw"
- icomment:
Ticket change [6a4d1ea176] (rid 128125) by davidw on 2005-01-04 21:02:17:
- closedate changed to: "2005-01-04T14:02:17"
- closer changed to: "davidw"
- icomment:
Logged In: YES user_id=240 I added an example like this: puts HelloWorld in the first chapter, and changed some of the others to not use quoting. Have a look and see if you think it's adequate. I'm going to go ahead and close the bug, but I'd be happy to add some more.
- login: "davidw"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "davidw"
Ticket change [079362bbe9] (rid 89426) by dgp on 2005-01-04 23:16:01:
- icomment:
Logged In: YES user_id=80530 I don't see the change. Does something need to be done to publish the change on the www.tcl.tk web site?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [73f7bfe3d7] (rid 105123) by davidw on 2005-01-04 23:40:31:
- icomment:
Logged In: YES user_id=240 That requires manual intervention by someone with access to the web server. It would be nice if there were a cron job pulling these changes out, but once again, someone with access to the web site would have to "make it so". It's all plain HTML, so if you want, it's also possible to just pull it out of CVS and view it as a local document.
- login: "davidw"
- mimetype: "text/plain"
- username: "davidw"
- icomment:
Ticket change [747115906e] (rid 105205) by dgp on 2005-01-05 00:13:51:
- icomment:
Logged In: YES user_id=80530 that example helps. yes. Here's a patch with other changes to that page you might consider. Something else to think about is careful use of the terms "string" and "word" in discussing Tcl syntax.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [af95e345f9] (rid 97839) by dgp on 2005-01-05 00:16:23:
- icomment:
Logged In: YES user_id=80530 Yes, that example helps. Attached is a patch of other changes to that page for you to consider. I think I'd also drop the quotes from the first example on the following page to get: set fruit Cauliflower Another thing to think about is more careful use of the terms "string" and "word". Do you want comments filed like this in the Bug Tracker? Or is some other mechanism better?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1092508.patch" [ec9d761bf0] (rid 103736) by dgp on 2005-01-05 00:16:24.
Ticket change [250edccf19] (rid 131218) by dgp on 2005-01-05 00:16:24:
- icomment:
File Added - 114469: 1092508.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [521aff6419] (rid 126255) by davidw on 2005-01-05 01:13:04:
- icomment:
Logged In: YES user_id=240 Fixes, bugs and quick comments are fine on the bug tracker. Discussion of major changes should be on tcl-core. Personal email to me is ok too for quick things, I use that as a sort of bug tracker sometimes:-)
- login: "davidw"
- mimetype: "text/plain"
- username: "davidw"
- icomment:
Ticket change [882ce40954] (rid 131827) by hobbs on 2005-01-05 01:37:25:
- icomment:
Logged In: YES user_id=72656 RE: the web issue, I'm hoping that this gets folded into the Tcl core docs, so it gets updated with each release, as the other docs on the web site do.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment: