<i>encoding command does not allow -strict to be used with -failindex</i> status still Open with 3 other changes
by
.
D 2023-01-23T09:58:27.674
J icomment "...\sthe\sconstraint\swas\salready\sthere,\sas\sside-effect\sof\sTIP\s#601."\r\n\r\nBut\sthat\swas\snot\sthe\sintent\sof\sTIP\s601.\s\sIt\swas\snot\sdiscussed\sin\sthe\sTIP,\sand\r\nwas\sonly\san\sinadvertent\sside\seffect.\s\sTcl\sshouldn't\sbe\sa\shack\sjob.\r\n\r\nTIP\s601\sitself\sis\sa\sside\seffect\sof\sthe\smistake\smade\sin\sTIP\s346:\s\sspecifying\san\r\noption\s("-strict")\sthat\snot\sonly\sdetermines\swhether\san\serror\swill\sbe\sthrown,\r\nbut\salso\sdetermines\swhat\sconstitutes\san\serror.\s\sBecause\sthe\scontrol\sof\scontrol\r\nof\stwo\sdifferent\sfunctionalities\swas\slumped\stogether,\sTIP\s601\scame\salong\sto\r\nprovide\san\soption\sto\sseparate\sthem,\s\sNow\swe\shave\sthe\sunfortunate\ssituation\sthat\r\nif\sone\swants\serrors\sto\sbe\sraised\son\sencoding\sproblems,\sbut\sdoesn't\swant\sthe\r\nadditional\sbehaviour\sspecified\sin\sTIP\s346,\sthere's\sno\scombination\sof\soptions\r\nfor\sthat.\s\sInstead,\swhat\sTcl\shas\sis\stwo\soptions,\s"-strict"\sand\s"-nocomplain",\r\nthat\swork\stogether\sin\sa\sconfusing\sway\sto\sprovide\sfunctionality\sno\sone\swants\s(or\r\nunderstands).\r\n\r\nThere\swas\snever\sa\sTIP\sproposed\sto\sspecify\sthat\sencoding\snames\sshould\snot\sstart\r\nwith\sa\s"-",\sand\stherefore\swas\snever\sa\svote\son\sthat\schange.\s\sConstraining\sthe\r\nset\sof\svalues\sin\ssituation-specific\sways\sis\sthe\stype\sof\sbooby\strap\sthat\sbites\r\nprogrammers\syears\sdown\sthe\sroad\safter\sa\slanguage\shas\sevolved\sin\sunexpected\r\nways.\s\sThis\sis\sone\sexample\sof\show\srecent\sTIPs\shave\snot\sbeen\sproperly\svetted.\r\n\r\nAs\sHarald\ssaid,\sTIP\s346\scombined\sdisparate\sfunctionality\sinto\sone\soption.\s\sThis\r\nis\sbad.\s\sTIPs\sthat\shave\sso\sfar\sonly\saffected\sunreleased\sversion\sof\sTcl\sshould\r\nnot\sbe\ssacred\scows.\s\sBetter\ssometimes\sto\sgo\sback\sto\sthe\sdrawing\sboard\sbefore\r\nthe\sdamage\stakes\sroot.
J login pooryorick
J mimetype text/x-fossil-wiki
K a31caff05780aabdd20a8468673340435862dbf9
U pooryorick
Z da0818e57172126683c4713b277026f6