Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-05-07
06:52 • Closed ticket [3de6490777]: Remove string is unicode plus 6 other changes artifact: c34b5b9a41 user: apnadkarni
2024-01-10
17:10 • Ticket [3de6490777]: 4 changes artifact: c31a097070 user: oehhar
17:02 • Ticket [3de6490777]: 3 changes artifact: c2ed6479b4 user: pointsman
09:51 • Ticket [3de6490777]: 4 changes artifact: 66ebaeb27b user: oehhar
2023-12-22
01:49 • New ticket [3de6490777]. artifact: 594ed77813 user: pointsman

Remove [string is unicode]

Closed / Fixed3de6490777c6dae1c9734f6bc970ff920f1e1869Created 3 years agoUpdated 3 years ago
Descriptionplain2023-12-22 01:49:32
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.
oehharwiki2024-01-10 09:51:08

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

pointsmanplain2024-01-10 17:02:56
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.
oehharwiki2024-01-10 17:10:02

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

apnadkarniplain2024-05-07 06:52:54
Done - TIP 652.
Log in (anonymous is fine) to add a comment.