Overview
| Artifact ID: | bdf44a5405ba4d664db7cf6491e1512af9effdba3c244c25c0f3dc9b55fa4c89 |
|---|---|
| Ticket: | b204c13b2b2335a6baf8fa1a3c6a627432380012
Incompatibility between 8.6 and 8.7 with underscores in numerics |
| User & Date: | griffin on 2023-08-27 23:18:07 |
Changes
- icomment:
Thanks for the deep analysis Julian! Just a couple comments for now: == vs eq The "guessing" behavior of == has been problematic in very subtle ways. Solidifying numeric vs string behavior distinction is a win in the long run, even if it introduces an incompatibility, IMO. (As for 8.7 vs 9.0: 8.7 is controversially defined as a transition release, so compatibility rules are intentionally ignored to some extent. Interpret that as you see fit.) The use of underscore before or after the decimal point is a mistake and should be disallowed. This is a bug and should be fixed. TIP #551 was inspired by VHDL, which derives from ADA which defines numeric literals as: ``` numeric_literal ::= decimal_literal | based_literal decimal_literal ::= integer [.integer] [exponent] integer ::= digit {[underline] digit} exponent ::= E [+] integer | E - integer ``` "based_literal" is similar for binary, octal, and hex bases. The current Tcl implementation allows the underscore adjacent to the decimal point; ADA does not. - login: "griffin"
- mimetype: "text/x-markdown"