Overview
| Artifact ID: | 3d7e9c18dfdd394dcce5eac570e0bbb44fff70213ef3826b724db8fe52031790 |
|---|---|
| Ticket: | cd61f085da52b3384388c8ef780f53d8c55ead4f
tcl terminates silently with invalid expr underscore syntax and radix prefix |
| User & Date: | juliannoble2 on 2023-08-29 14:30:38 |
Changes
- icomment:
I checked out branch bug-cd61f085da It seems more robust. I see you disallowed multiple underscores in a row. I confess to being a little disappointed - as my concerns about the syntax leaking probably don't distinguish between 1_000 vs 'non standard' groupings like 10_00 or novel spacings like 10___00. If it's going to have any underscores the care has to be taken anyway - and I actually liked the less conservative approach in that minor regard. The comments about creative freedom on the core mailing list were interesting. e.g the following was mentioned: # foo bar snafu set list { 54_____6_____000 42_____9_____001 } In combination with DKFs tip 677 https://core.tcl-lang.org/tips/doc/trunk/tip/677.md , giving some scoped immutability to variables - I thought this would be very nice to retain. Anyway - perhaps implementation issues are the decider. I do feel however there is a remaining inconsistency that may cause errors when editing code: % expr 2.1e_2 210.0 % expr 2.1e_+2 invalid character "." in expression "2.1e_+2" % % expr 2.1e+_2 210.0 If the underscore is allowed after the e when there is no +/- then it should be allowed in the presence of the + or - too - otherwise someone simply editing to throw in a + or - of an already underscored value will be surprised. - login: "juliannoble2"
- mimetype: "text/plain"