.
D 2025-06-09T11:53:54.616
J icomment @griffin\r\n\r\nI\sstill\shave\sdiscomfort\swith\sthe\sreturn\sof\san\sempty\slist\sunder\sconditions\swhere\swe\sshould\sgenerate\serrors.\sFor\sexample,\r\n\r\n```\r\n%\sllength\s[lseq\s-0x8000000000000000\sto\s-1\sby\s1]\r\n0\r\n```\r\n\r\nwhich\sis\sclearly\swrong.\sSince\sTcl\scannot\shandle\scounts\sthat\slarge,\sit\sshould\sgenerate\san\serror,\snot\sreturn\sa\sbogus\sresult.\r\n\r\nAlso,\swith\sregards\sto\sstep\ssize\sof\s0,\sconsider\r\n\r\n```\r\n%\slseq\s42\sto\s42\sby\s0\r\n%\r\n```\r\n\r\nThe\sreturn\svalue\sI\swould\sexpect\sis\s{42},\snot\san\sempty\sstring.\sBut\sthe\sdocumentation\sstates\sa\sstep\ssize\sof\s0\swill\sreturn\san\sempty\slist\sso\s**behaves\sas\sdocumented**.\sStill\sunexpected\sin\smy\sopinion\sand\sshould\sbe\schanged.\sConversely,\sif\sstart\s!=\send,\sa\sstep\ssize\sof\s0\sis\san\sinfinite\sseries\sof\s"start"\sand\snot\san\sempty\ssequence.\sGiven\sTcl\scannot\srepresent\sthat,\sagain\san\serror\sshould\sbe\sraised.\sIf\swe\sfix\sthe\sformer\sand\snot\sthe\slatter,\swe\shave\sinconsistency\slike\r\n\r\n```\r\n[llength\s[lseq\s42\sto\s42\sby\s0]]\s>\s[llength\s[lseq\s42\sto\s43\sby\s0]]\r\n```\r\n\r\nIf\syou\sdisagree\swith\sthe\sabove\sand\sno\sone\selse\shas\sa\sproblem\swith\sthe\scurrent\sbehavior,\sI'll\sleave\sit\sas\sit\sis.
J login apnadkarni
J mimetype text/x-markdown
K 0ee626dfb24ee37f6ef1e4955b114ff09ea350f3
U apnadkarni
Z e4c75a02864cbea48d710649219bba3f