<i>Incompatibility between 8.6 and 8.7 with underscores in numerics</i> status still Open with 3 other changes
by
.
D 2023-08-27T17:16:35.312
J icomment I\sunderstand\sthe\sTIP\sis\sapproved\sand\sdo\snot\shave\sthe\senergy\sto\spursue\sanother\sTIP\sto\slimit\sthis\schange\sto\s9.0.\sNevertheless,\sI'll\sjust\ssay\simo\sthis\sclouds\sthe\sTcl's\sdefinition\sof\scompatibility.\r\n\r\nOn\sa\sseparate\snote,\sto\selaborate\s/\ssecond\sJulian's\scomments,\s\r\n\r\n*\severy\slanguage\sI\sknow\sthat\suses\sunderscores\sas\sdigit\sseparators\s**only\sin\sinteger\sliterals**.\sThere\sis\sa\sclear\sdistinction\sbetween\s`12_3`\sand\s`"12_3"`\sand\sunderscores\sare\signored\sonly\sin\sthe\sformer.\s\r\n\r\n*\sMoreover,\sany\sunderscores\spresent\sin\svalues\sstored\sin\svariables\sand\soperations\son\sthem\sare\snot\ssubject\sto\sthis.\r\n\r\nFor\sbetter\sor\sworse,\sTcl\smakes\sno\ssuch\sdistinction\sbetween\sinteger\sand\sstring\sliterals\sand\ssince\sthe\sdiscarding\shappens\snot\sat\sthe\ssource\slexing\slevel\sbut\swithin\scommands\sthat\suse\sthe\snumber\sparsing\sfunctions,\sthe\schange\sis\subiquitous\sand\sthe\seffects\smore\swidespread.\sI'll\sadmit\sI\shad\snot\srealized\sthe\sdistinction\swhen\sreading\sthe\sTIP,\sperhaps\sbecause\sit\salso\scompletely\sfocuses\son\sthe\suse\sof\sunderscores\swithin\ssource\scode\swith\sno\sreference\sto\stheir\streatment\sby\scommands.\r\n\r\nFor\sexample,\r\n\r\n```\r\n%\sstring\sis\sentier\s-strict\s2_0_0\r\n1\r\n%\sexpr\s2_0_0\r\n200\r\n%\sscan\s2_0_0\s%d\r\n2\r\n```\r\n\r\nI\spresume\sthe\sbehaviour\sabove\swhere\s`scan`\sdoes\snot\streat\sunderscore\sspecially\slike\s`expr`\sand\s`string\sis\sentier`\sis\sintentional\sbut\sit\sis\sinconsistent\sand\sconfusing.\r\n\r\nIn\sany\scase,\sprobably\swater\sunder\sthe\sbridge\sand\snot\ssomething\sI'm\sgoing\sto\spursue\sat\sthis\spoint.\r\n\r\n/Ashok
J login apnadkarni
J mimetype text/x-markdown
K b204c13b2b2335a6baf8fa1a3c6a627432380012
U apnadkarni
Z 0a56c9314c63d6e5cb6952c79416350f