.
D 2004-12-29T02:34:19
J assignee davidw
J cmimetype text/plain
J comment \nIn\sits\searliest\slessons\sand\sexamples,\nthe\stutorial\simplies\squoting\srequirements\nthat\sdo\snot\sexist.\n\nPage:\n\nhttp://www.tcl.tk/man/tcl8.5/tutorial/Tcl2.html\n\nincludes\sthe\sexample:\n\n\s\s\s\sset\sfruit\s"Cauliflower"\n\nIn\sthe\snext\spage,\sthe\sexample\sincludes:\n\n\s\s\s\s\sset\sZ\s"Albany"\n\s\s\s\s\s\nThe\s"..."\squoting\sis\slegal,\sbut\snot\snecessary.\nUsing\sthis\squoting\sstyle\sin\sthe\sfirst\sexamples\nof\sTcl\scommands\sstrongly\ssuggests\sthe\nquoting\sis\snecessary.\sThis\skind\sof\smisimpression\nearly\son\scan\slead\sto\sfaulty\sbeliefs\sthat\s"..."\squoting\ncreates\sa\s"value",\sor\sthat\s{...}\squoting\screates\na\s"list".\s\sBetter\sto\slearn\searly\son\s(both\sexplicitly\nand\sby\simplication)\sthat\sTcl's\ssyntax\srules\ndetermine\sword\sboundaries\sand\ssubstitution.\nNo\smore;\sno\sless.\n\nI\sbelieve\sthis\squoting\sstyle\sis\sone\nfavored\sby\sthe\sTclTutor\sauthor\sas\na\sway\sto\sindicate\sprogrammer\sintent\nregarding\svalues\svs.\svariable\snames.\nIt's\sa\sfine\scoding\sconvention\sto\nintroduce\slater\son\sonce\sthe\sprecise\nsyntax\srequirements\sof\sTcl\sare\swell\nestablished.\s\sI\sthink\sthe\searly\slessons\nin\sthe\stutorial\sshould\smake\suse\sof\nonly\snecessary\ssyntax\sto\savoid\sany\nconfusion\sabout\swhat\sTcl\srequires\nvs.\swhat\ssome\scoding\sconvention\nrecommends.\n\n
J foundin obsolete:\s8.5a3
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 75.\sTutorial
J title Tutorial\simplies\sfalse\squoting\srequirements
J type Bug
K 1092508fffffffffffffffffffffffffffffffff
U dgp
Z c959c8c2d9ed636b7a5320556c2eb630