|
2024-04-04
| ||
| 14:25 | • Closed ticket [d0c9289aaa]: Please consider reverting [0a9ae478ac] plus 7 ot... artifact: 54e48a008a user: jan.nijtmans | |
| 12:59 | • Ticket [d0c9289aaa]: 3 changes artifact: 4deb2f6861 user: chw | |
| 12:21 | • Ticket [d0c9289aaa]: 3 changes artifact: 3f415a3453 user: jan.nijtmans | |
| 12:09 | • Ticket [d0c9289aaa]: 3 changes artifact: 8bf3e090d9 user: sebres | |
| 11:39 | • New ticket [d0c9289aaa]. artifact: 6fec959574 user: chw | |
Please consider reverting [0a9ae478ac]
Check-in [0a9ae478ac] renames "encodingName" to "encoding" both in the documentation and the code. "encodingName" usually was a const char pointer giving the string aka the name of the encoding. At other places "encoding" is used to hold a value of type Tcl_Encoding which is the internal representation of an encoding. Therefore in order to preserve semantic I would strongly prefer to turn back things as they were before this check-in in order to underline the distinction between a string name and an actual Tcl_Encoding.
Absolutely agree...
Without to take a closer look, I'd also claim it'd additionally produce unneeded conflicts in several branches, forks and patches (or making the merge points non-functional, expecting manual changes for all functions having additionally Tcl_Encoding encoding or Encoding *encoding or simply using previous names on some additional places in that functions).
In my opinion, the theoretic pros (shortening the function definition?) can not justify the cons in any way.
But it is me - I am always against changes for pure syntactic or decorating purposes only, without to touch the function content (without to repair or extend it).
No problem, it's a small thing.
Jan, with all due respect do I not agree with check-in [4a704590fe] which makes "encoding" to "encodingNamePtr" (which once simply was "encodingName"). This makes things worse and has not even a little bit of consistency in it. Why not take back the change entirely and leave things as they were since more than 10 years?
All reverted now. This was a failed attempt to add some consistancy ...
Not worth to continue with this, Tcl 9.0b2 is more important!