Remove [string is unicode]
Current tcl trunk still includes the [string is] class "unicode", although this class is not mentioned in the documentation. Instead of fixing this omission I propoose to remove the functionality. The comment of the implementation describes in words what the code does: * Excluded are: * 1) All characters > U+10FFFF * 2) Surrogates U+D800 - U+DFFF * 3) Last 2 characters of each plane, so U+??FFFE and U+??FFFF * 4) The characters in the range U+FDD0 - U+FDEF That means? Well, any non unicode character (including Surrogates). Sensible, so far. But then also some other (valid) unicode character more for not stated reason. At latest with the agreement that the Tcl utf-8 en-/decoder will behave according to the unicode understanding the class "unicode" has no practical relevance. On top comes that such an at best marginal useful feature has such a prominent name. Most skilled programmers educated with other programming languages would with reasons expect something else than what that class does.
Dear Rolf,
the targeted functionality is given in TIP 597: https://core.tcl-lang.org/tips/doc/trunk/tip/597.md
At least Ashok found it sensible.
You athored the sensible TIP 652: https://core.tcl-lang.org/tips/doc/trunk/tip/652.md. Could you check, if this TIP is up to date with TCL9.0b1 ?
In a core list discussion, at least to rename it to "is transferable" is proposed. TIP 685 will do this proposal: https://core.tcl-lang.org/tips/doc/trunk/tip/652.md
I hope, the TCT may choose one of them. We are in 9.0b2 phase and time urges.
Thank you for all ! Harald
The TIP 652 [https://core.tcl-lang.org/tips/doc/trunk/tip/652.md] is not authored by me (it was Nathan Coulter). As stated several times my mail goal is to prevent the badly chosen [string is] class name "unicode". (And removing this only rarly useful feature would one way to achive this.) Renaming the class is an obvious other way to resolve that problem. Though, the by TIP 685 proposed name "transferable" isn't much better.
Hi Rolf, thank you for the clarification.
Do you have a better name?
At least, "transferable" has something to do with the intended use.
And, by the way, thanks to Jan Nijtmans to implement all this.
Thank you and take care, Harald
Done - TIP 652.